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

FX::FXQueue Class Reference

Queue. More...

#include <FXThreadPool.h>

List of all members.

Public Member Functions

 FXQueue (FXuint sz=256)
FXbool setSize (FXuint sz)
FXuint getSize () const
FXuint getCount () const
FXuint getHead () const
FXuint getTail () const
FXbool isEmpty () const
FXbool isFull () const
FXbool push (FXRunnable *job)
FXbool pop (FXRunnable *&job)
 ~FXQueue ()


Detailed Description

Queue.

Constructor & Destructor Documentation

FX::FXQueue::FXQueue ( FXuint  sz = 256  ) 

Create queue with initial size.

FX::FXQueue::~FXQueue (  ) 

Destroy queue.


Member Function Documentation

FXbool FX::FXQueue::setSize ( FXuint  sz  ) 

Change size of queue; return true if success.

FXuint FX::FXQueue::getSize (  )  const

Return size.

FXuint FX::FXQueue::getCount (  )  const

Return jobs.

FXuint FX::FXQueue::getHead (  )  const

Return head.

FXuint FX::FXQueue::getTail (  )  const

Return tail.

FXbool FX::FXQueue::isEmpty (  )  const

Check if queue is empty.

FXbool FX::FXQueue::isFull (  )  const

Check if queue is full.

FXbool FX::FXQueue::push ( FXRunnable job  ) 

Add item to queue, return true if success.

FXbool FX::FXQueue::pop ( FXRunnable *&  job  ) 

Remove item from queue, return true if success.

Copyright © 1997-2010 Jeroen van der Zijp