Get_Crit_Status_Thread

include vmm.inc

VMMCall Get_Crit_Status_Thread
 

If the critical-section claim count is non-zero, this function returns the critical-section claim count in ECX and a handle identifying the thread that owns the critical section in EDI.

If the critical-section claim count is zero, and the current VM is the system VM, this function inspects the V86 mutex count. If the V86 mutex count is non-zero, this function returns the V86 mutex count in the high word of ECX, and a handle identifying the thread that owns the V86 mutex in EDI.

If none of the above applies (in the case where the returned ECX contains 0) this routine returns the current thread handle in EDI.

Uses flags. Sets the carry flag if the thread is in a time-critical operation such as hardware interrupt simulation.

This service may be called at interrupt time.

This service differs from Get_Crit_Section_Status and Get_Crit_Status_No_Block in that it returns a thread handle.

See Also

Get_Crit_Section_Status, Get_Crit_Status_No_Block