Provides the basic functionality for propagating a synchronization context across various synchroniza...
Definition: synchronization_context.h:14
virtual void Send(SendOrPostCallback d, SharedPtr< Object > state)
Runs callback synchronously.
static const SharedPtr< SynchronizationContext > & get_Current()
Gets the synchronization context for the current thread.
virtual void Post(SendOrPostCallback d, SharedPtr< Object > state)
Runs callback asynchronously.
SynchronizationContext()
Constructs a new instance of SynchronizationContext.
static void SetSynchronizationContext(const SharedPtr< SynchronizationContext > &syncContext)
Sets the synchronization context for the current thread.