61 FXbool push(FXptr ptr);
64 FXbool trypush(FXptr obj);
68 FXbool trypush(FXptr obj,FXTime nsec);
71 FXbool pop(FXptr& ptr);
74 FXbool trypop(FXptr& obj);
78 FXbool trypop(FXptr& obj,FXTime nsec);
89 template<
typename TYPE>
FXbool push(FXptr ptr)
Add item to queue, return true if success.
Queue of void pointers.
Definition: FXPtrQueue.h:28
FXbool trypush(TYPE *obj, FXTime nsec)
Try push object into queue, return true if success.
Definition: FXSemaQueue.h:103
A semaphore allows for protection of a resource that can be accessed by a fixed number of simultaneou...
Definition: FXSemaphore.h:38
Semaphore protected queue for a single producer and a single consumer thread.
Definition: FXSemaQueue.h:44
FXSemaQueueOf(FXival sz=32)
Create initially empty queue of given size sz.
Definition: FXSemaQueue.h:94
FXival getSize() const
Return size.
Definition: FXSemaQueue.h:58
FXbool pop(TYPE *&obj)
Drop item from queue, return true if success.
Definition: FXSemaQueue.h:106
Definition: FXSemaQueue.h:90
FXbool trypush(FXptr obj)
Try push object into queue.
Definition: FX4Splitter.h:28
FXbool trypop(FXptr &obj)
Try pop object from queue.
FXbool pop()
Drop item from queue, return true if success.
FXival getSize() const
Return size.
Definition: FXPtrQueue.h:48
FXbool trypop(TYPE *&obj)
Try pop object from queue, return true if success.
Definition: FXSemaQueue.h:109
FXbool push(TYPE *obj)
Add item to queue, return true if success.
Definition: FXSemaQueue.h:97
FXbool trypush(TYPE *obj)
Try push object into queue, return true if success.
Definition: FXSemaQueue.h:100
FXbool trypop(TYPE *&obj, FXTime nsec)
Try pop object from queue, return true if success.
Definition: FXSemaQueue.h:112