TryGetFront

nn::os::BlockingQueue::TryGetFront Member Function

Syntax

#include <nn/os.h>

bool TryGetFront(
     uptr * pOut
) const;

Parameters

Name Description
out pOut Location at which to store the retrieved value

Return Values

Returns true if the element could be obtained, and false otherwise.

Description

Gets the element at the front of the queue.

If the queue is empty, does nothing and returns false. If the queue is not empty, this function writes the first element in the queue to *pOut and returns true. The state of the queue does not change.

Revision History

2010/01/07
Initial version.

CONFIDENTIAL