Share via


Context::CurrentContext Method

Returns a pointer to the current context.

_CRTIMP static Context * __cdecl CurrentContext();

Return Value

A pointer to the current context.

Remarks

This method will result in the process' default scheduler being created and/or attached to the calling context if there is no scheduler currently associated with the calling context.

Requirements

Header: concrt.h

Namespace: Concurrency

See Also

Reference

Context Class