Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FX::FXLFQueue Class Reference

Lock-free queue of void pointers. More...

#include <FXLFQueue.h>

Inheritance diagram for FX::FXLFQueue:
FX::FXLFQueueOf< TYPE >

List of all members.

Public Member Functions

 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.

Detailed Description

Lock-free queue of void pointers.


The documentation for this class was generated from the following file:

Copyright © 1997-2016 Jeroen van der Zijp