PM Library classes

class PMQueue

? ^ 
    extends PMNonCopyable as public

Queue class.

A queue is ordered list of elements that is used to pass information between related or unrelated processes.

You can construct and destruct objects of this class.

Source:
pm_queue.h:30
Author:
Dmitry A.Steklenev
Version:
$Revision: 1.4 $

Contents

^ 
EntityInherited FromTypeScopeShort Description
PMQueueconstructor publicCreates a queue object.
~PMQueuedestructor publicDestroys the queue object.
clearmethod publicPurges a queue of all its elements.
emptymethod publicIs a queue empty.
readmethod public Reads an element from a queue.
peekmethod public Examines a queue element without removing it from the queue.
peekmethod public Examines a queue element without removing it from the queue.
writemethod public Adds an element to a queue.

constructor PMQueue

? ^  > 
Creates a queue object.
Source:
pm_queue.h:34
Code:
public PMQueue ( )

destructor ~PMQueue

? ^  < > 
Destroys the queue object.
Source:
pm_queue.h:36
Code:
public ~ PMQueue ( )

method clear

? ^  < > 
Purges a queue of all its elements.
Source:
pm_queue.h:39
Code:
public void clear ( )

method empty

? ^  < > 
Is a queue empty.
Source:
pm_queue.h:41
Code:
public BOOL empty ( ) const

method read

? ^  < > 
Reads an element from a queue.

Source:
pm_queue.h:51
Params:
request An event code that is specified by the application.
data A pointer to the data that is being removed.
priority The address of the element's priority.
Code:
public BOOL read ( ULONG * request ,
void * * data = NULL ,
ULONG * priority = NULL )

method peek

? ^  < > 
Examines a queue element without removing it from the queue.

Source:
pm_queue.h:61
Params:
request An event code that is specified by the application.
data A pointer to the examined data.
priority The address of the element's priority.
Code:
public BOOL peek ( ULONG * request ,
void * * data = NULL ,
ULONG * priority = NULL )

method peek

? ^  < > 
Examines a queue element without removing it from the queue.

Source:
pm_queue.h:73
Params:
first First event code.
last Last event code.

Returns:
TRUE if a next queue element has a event code in range specified by the first and last inclusive.
Code:
public BOOL peek ( ULONG first ,
ULONG last )

method write

? ^  < > 
Adds an element to a queue.

Source:
pm_queue.h:83
Params:
request An event code that is specified by the application.
data A data to be placed into the queue.
priority The priority value of the element that is being added to the queue.
Code:
public void write ( ULONG request ,
void * data = NULL ,
ULONG priority = 0 )

Created Fri Aug 3 09:13:16 2012.
This documentation was generated automatically by
ccdoc v08r39 2003/02/27 bin_opt_emx_os2-2.30.
Click here to submit a bug report or feature request for ccdoc.
Click here to return to the top of the page.