다음을 통해 공유


CQueue Class (Windows CE 5.0)

Send Feedback

ms907266.util05(en-us,MSDN.10).gif

This class implements a simple queue abstract data type.

The queue contains a finite number of objects, and a semaphore controls access to these objects.

The semaphore is created with an initial count (N).

Each time an object is added, a call to the Win32 WaitForSingleObject function is made on the handle of the semaphore.

When this function returns, it reserves a slot in the queue for the new object. If no slots are available, the member function blocks until it becomes available.

Each time an object is removed from the queue, the Win32 ReleaseSemaphore function is called on the handle of the semaphore, thus freeing a slot in the queue. If no objects are present in the queue, the function blocks until an object has been added.

Member Functions

Member function Description
CQueue Constructs a CQueue object.
GetQueueObject Retrieves an object from the queue.
PutQueueObject Puts an object into the queue.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.