Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Lock-free queue of pointers to TYPE. More...
#include <FXLFQueue.h>
Public Member Functions | |
FXLFQueueOf (FXuint sz) | |
FXbool | push (TYPE *ptr) |
FXbool | pop (TYPE *&ptr) |
Public Member Functions inherited from FX::FXLFQueue | |
FXLFQueue () | |
Create initially empty queue. | |
FXLFQueue (FXuint sz) | |
Create queue with initial size, which must be a power of two. | |
FXbool | setSize (FXuint sz) |
Change size of queue (must be power of two); return true if success. | |
FXuint | getSize () const |
Return size. | |
FXuint | getUsed () const |
Return number of used slots. | |
FXuint | getFree () const |
Return number of free slots. | |
FXbool | isFull () const |
If queue not full, can write if no other producers. | |
FXbool | isEmpty () const |
If queue not empty, can read if no other consumers. | |
FXbool | push (FXptr ptr) |
Add item to queue, return true if success. | |
FXbool | pop (FXptr &ptr) |
Remove item from queue, return true if success. | |
~FXLFQueue () | |
Destroy queue. | |
Lock-free queue of pointers to TYPE.
Copyright © 1997-2022 Jeroen van der Zijp |