Condividi tramite


Context::CurrentContext Method

Returns a pointer to the current context.

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