#include <LockFreeList.h>
◆ IsEmpty()
template<class T , int TPaddingForCacheContention>
Check if the list is empty.
- Returns
- true if the list is empty. CAUTION: This methods safety depends on external assumptions. For example, if another thread could add to the list at any time, the return value is no better than a best guess. As typically used, the list is not being access concurrently when this is called.
◆ Pop()
template<class T , int TPaddingForCacheContention>
Pop an item from the list or return NULL if the list is empty.
- Returns
- The popped item, if any.
◆ PopAll()
template<class T , int TPaddingForCacheContention>
Pop all items from the list.
- Parameters
-
| Output | The array to hold the returned items. Must be empty. |
◆ Push()
template<class T , int TPaddingForCacheContention>
Push an item onto the head of the list.
- Parameters
-
| NewItem,the | new item to push on the list, cannot be NULL. |
The documentation for this class was generated from the following file: