MPDequeTask

Syntax

#include <cafe/mp.h>

MPTaskPtr MPDequeTask(MPTaskQ* taskq);

Parameters

taskq The MPTaskQ that should be used.

Return Values

Pointer to the MPTask that was dequeued. May return NULL if the queue is empty.

Description

MPDequeTask dequeues a task from the specified MPTaskQ. May return NULL if the specified MPTaskQ is empty.

Do Not Call From

Multiple threads This function is not thread-safe.

See Also

MPDequeTasks
MPEnqueTask
MPGetTaskQInfo
MPInitTaskQ
MPResetTaskQ
MPRunTasksFromTaskQ
MPStartTaskQ
MPStopTaskQ
MPTermTaskQ
MPWaitTaskQ
MPWaitTaskQWithTimeout

Revision History

2013-05-08 Automated cleanup pass.
2012-08-21 Cleanup Pass
2012-05-14 Fix See Also.
2012-05-04 Match actual prototype.
2010-08-23 Initial version.


CONFIDENTIAL