MPRunTasksFromTaskQ

Syntax

#include <cafe/mp.h>

BOOL MPRunTasksFromTaskQ(MPTaskQ *taskq, int deque_granularity);

Parameters

taskq MPTaskQ to run.
deque_granularity Number of items for the MPTaskQ to dequeue while running.

Return Values

TRUE: The specified MPTaskQ started running.
FALSE: The specified MPTaskQ was unable to start running.

Description

MPRunTasksFromTaskQ starts running MPTasks from the specified MPTaskQ.

Do Not Call From

Multiple threads This function is not thread-safe.
Callbacks Do not call this function from any callback function.

See Also

MPDequeTask
MPDequeTasks
MPEnqueTask
MPGetTaskQInfo
MPInitTaskQ
MPResetTaskQ
MPStartTaskQ
MPStopTaskQ
MPTermTaskQ
MPWaitTaskQ
MPWaitTaskQWithTimeout

Revision History

2013-05-08 Automated cleanup pass.
2012-05-14 Fixed See Also.
2012-05-04 Matched the actual prototype.
2010-08-23 Initial version.


CONFIDENTIAL