Fiber scheduler synchronization context to support task synchronization across schedulers or other synchronization models. More...
Public Member Functions | |
FiberSchedulerSynchronizationContext (FiberScheduler scheduler) | |
Initializes a new instance of the SpicyPixel.Threading.FiberSchedulerSynchronizationContext class. More... | |
override void | Post (SendOrPostCallback d, object state) |
Dispatches an asynchronous message to a synchronization context (the FiberScheduler). More... | |
override void | Send (SendOrPostCallback d, object state) |
Dispatches an synchronous message to a synchronization context (the FiberScheduler). More... | |
Detailed Description
Fiber scheduler synchronization context to support task synchronization across schedulers or other synchronization models.
Definition at line 37 of file FiberSchedulerSynchronizationContext.cs.
Constructor & Destructor Documentation
SpicyPixel.Threading.FiberSchedulerSynchronizationContext.FiberSchedulerSynchronizationContext | ( | FiberScheduler | scheduler | ) |
Initializes a new instance of the SpicyPixel.Threading.FiberSchedulerSynchronizationContext class.
- Parameters
-
scheduler The scheduler to send or post callbacks to.
Definition at line 47 of file FiberSchedulerSynchronizationContext.cs.
Member Function Documentation
override void SpicyPixel.Threading.FiberSchedulerSynchronizationContext.Post | ( | SendOrPostCallback | d, |
object | state | ||
) |
Dispatches an asynchronous message to a synchronization context (the FiberScheduler).
The scheduler may choose to inline the callback if the Post is executed from the scheduler thread.
- Parameters
-
d Callback to invoke state State to pass
Definition at line 65 of file FiberSchedulerSynchronizationContext.cs.
override void SpicyPixel.Threading.FiberSchedulerSynchronizationContext.Send | ( | SendOrPostCallback | d, |
object | state | ||
) |
Dispatches an synchronous message to a synchronization context (the FiberScheduler).
The callback is always inlined if Send is executed from the scheduler thread regardless of any scheduler specific inline settings. Because inlining always occurs when on the scheduler thread, the caller must manage stack depth.
- Parameters
-
d Callback to invoke state State to pass
Definition at line 89 of file FiberSchedulerSynchronizationContext.cs.
The documentation for this class was generated from the following file: