End_Critical_Section

include vmm.inc

VMMcall End_Critical_Section


The End_Critical_Section service releases the critical section if the current virtual machine owns the section, and the claim count is zero.

Parameters

This service has no parameters.

Return Value

This service has no return value.

Comments

This service decrements the claim count and releases the critical section if the new count is zero. Since releasing the critical section lowers the execution priority of the current virtual machine, this service causes a task switch if a nonsuspended virtual machine has higher priority.

Uses

Flags

See Also

Begin_Critical_Section, End_Crit_And_Suspend