Download VisualDSP++® Kernel (VDK) User's Guide

Transcript
VDK API Reference
GetThreadBlockingID()
C Prototype
VDK_SystemError VDK_GetThreadBlockingID(
VDK_ThreadID
inThreadID,
int
*outBlockingID);
C++ Prototype
VDK::SystemError VDK::GetThreadBlockingID(
VDK::ThreadID inThreadID,
int
*outBlockingID);
Description
Returns the enumerated identifier of the VDK object on which a thread
was last blocked or returns the message channel mask if the thread was
blocked waiting for a message. The object type can be determined from
the thread status, such that if the thread status is kSemaphoreBlocked, then
this API returns the semaphore identifier. This attribute is only updated
when a thread blocks and not when a thread unblocks. It is recommended
that GetThreadBlockingID() is used in conjunction with
GetThreadStatus().
Parameters
inThreadID
specifies the thread (ThreadID) to query.
is populated with the ID of the object on which the thread
was last blocked or the message channel mask if the thread was blocked
waiting for a message.
outBlockingID
Scheduling
Does not invoke the scheduler
VisualDSP++ 5.0 Kernel (VDK) User’s Guide
5-141