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

FX::FXLFQueueOf< TYPE > Class Template Reference

Lock-free queue of pointers to TYPE. More...

#include <FXLFQueue.h>

Inheritance diagram for FX::FXLFQueueOf< TYPE >:

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.

Detailed Description

template<typename TYPE>
class FX::FXLFQueueOf< TYPE >

Lock-free queue of pointers to TYPE.

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

Copyright © 1997-2022 Jeroen van der Zijp