Class TizenSynchronizationContext
Definition
- Namespace:
- Tizen.Applications
- Assembly:
- Tizen.Applications.Common.dll
Provides a synchronization context for the Tizen application model.
C#Copypublic class TizenSynchronizationContext : SynchronizationContext
- Inheritance
-
objectSystem.Threading.SynchronizationContextTizenSynchronizationContext
Methods
View Source
Initialize()
Initilizes a new TizenSynchronizationContext and install into the current thread.
Declaration
C#Copypublic static void Initialize()
Remarks
It is equivalent.
CopySetSynchronizationContext(new TizenSynchronizationContext());
View Source
Post(SendOrPostCallback, object)
Dispatches an asynchronous message to a Tizen main loop.
Declaration
C#Copypublic override void Post(SendOrPostCallback d, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.SendOrPostCallback | d | System.Threading.SendOrPostCallbackThe SendOrPostCallback delegate to call. |
| object | state | objectThe object passed to the delegate. |
Overrides
System.Threading.SynchronizationContext.Post(System.Threading.SendOrPostCallback, object)
Remarks
The post method starts an asynchronous request to post a message.
Declaration
C#Copypublic override void Send(SendOrPostCallback d, object state)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.SendOrPostCallback | d | System.Threading.SendOrPostCallbackThe SendOrPostCallback delegate to call. |
| object | state | objectThe object passed to the delegate. |
Overrides
System.Threading.SynchronizationContext.Send(System.Threading.SendOrPostCallback, object)
Remarks
The send method starts a synchronous request to send a message.