31 volatile FXuint whead;
32 volatile FXuint wtail;
33 volatile FXuint rhead;
34 volatile FXuint rtail;
47 FXbool setSize(FXuint sz);
50 FXuint
getSize()
const {
return (FXuint)items.
no(); }
53 FXuint getUsed()
const;
56 FXuint getFree()
const;
59 FXbool isFull()
const;
62 FXbool isEmpty()
const;
65 FXbool push(FXptr ptr);
68 FXbool pop(FXptr& ptr);
76 template <
typename TYPE>
Lock-free queue of void pointers.
Definition: FXLFQueue.h:28
FXuint getSize() const
Return size.
Definition: FXLFQueue.h:50
Definition: FX4Splitter.h:28
FXbool pop(FXptr &ptr)
Remove item from queue, return true if success.
FXival no() const
Return number of objects.
Definition: FXPtrList.h:55
FXbool push(FXptr ptr)
Add item to queue, return true if success.
Lock-free queue of pointers to TYPE.
Definition: FXLFQueue.h:77
List of void pointers.
Definition: FXPtrList.h:28
FXLFQueue()
Create initially empty queue.