AvRtLeaveThreadOrderingGroup function

Enables client threads to leave a thread ordering group.


AVRTAPI BOOL AvRtLeaveThreadOrderingGroup(
  HANDLE Context



A context handle. This handle is returned by the AvRtJoinThreadOrderingGroup function.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, call GetLastError.


The parent thread for a thread ordering group should not remove itself from the group.

If a thread times out and attempts to call this function, the function fails with a last error code of ERROR_INVALID_PARAMETER.


Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header avrt.h
Library Avrt.lib
DLL Avrt.dll

See Also

Thread Ordering Service