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

FX::FXWSQueue Class Reference

Work-stealing queue. More...

#include <FXWSQueue.h>

Public Member Functions

 FXWSQueue (FXint sz=256)
 Create a queue and set its size to sz.
FXbool setSize (FXint sz)
 Change size of the queue.
FXint getSize () const
 Return size.
FXint getUsed () const
 Return number of used slots.
FXint getFree () const
 Return number of free slots.
FXbool isFull () const
 Check if queue is full.
FXbool isEmpty () const
 Check if queue is empty.
FXbool push (FXptr ptr)
 Push pointer.
FXbool pop (FXptr &ptr)
 Pop pointer.
FXbool take (FXptr &ptr)
 Take (steal) pointer.
virtual ~FXWSQueue ()
 Delete queue.

Detailed Description

Work-stealing queue.

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

Copyright © 1997-2018 Jeroen van der Zijp