AvRtLeaveThreadOrderingGroup function (avrt.h)

Enables client threads to leave a thread ordering group.

Syntax

AVRTAPI BOOL AvRtLeaveThreadOrderingGroup(
  [in] HANDLE Context
);

Parameters

[in] 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.

Remarks

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.

Requirements

Requirement Value
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