#include <LockFreeList.h>
◆ IsClosed()
template<class T , int TPaddingForCacheContention>
Check if the list is closed
- Returns
- true if the list is closed.
◆ PopAllAndClose()
template<class T , int TPaddingForCacheContention>
Pop all items from the list and atomically close it.
- Parameters
-
| Output | The array to hold the returned items. Must be empty. |
◆ PushIfNotClosed()
template<class T , int TPaddingForCacheContention>
Push an item onto the head of the list, unless the list is closed
- Parameters
-
| NewItem,the | new item to push on the list, cannot be NULL |
- Returns
- true if the item was pushed on the list, false if the list was closed.
◆ Reset()
template<class T , int TPaddingForCacheContention>
Reset the list to the initial state. Not thread safe, but used for recycling when we know all users are gone.
The documentation for this class was generated from the following file: