C# 클래스 SpicyPixel.Threading.FiberSchedulerSynchronizationContext

Fiber scheduler synchronization context to support task synchronization across schedulers or other synchronization models.
상속: System.Threading.SynchronizationContext
파일 보기 프로젝트 열기: spicypixel/concurrency-kit-cs 1 사용 예제들

공개 메소드들

메소드 설명
FiberSchedulerSynchronizationContext ( FiberScheduler scheduler ) : System

Initializes a new instance of the SpicyPixel.Threading.FiberSchedulerSynchronizationContext class.

Post ( SendOrPostCallback d, object state ) : void

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.

Send ( SendOrPostCallback d, object state ) : void

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.

메소드 상세

FiberSchedulerSynchronizationContext() 공개 메소드

Initializes a new instance of the SpicyPixel.Threading.FiberSchedulerSynchronizationContext class.
public FiberSchedulerSynchronizationContext ( FiberScheduler scheduler ) : System
scheduler FiberScheduler /// The scheduler to send or post callbacks to. ///
리턴 System

Post() 공개 메소드

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.
public Post ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback /// Callback to invoke ///
state object /// State to pass ///
리턴 void

Send() 공개 메소드

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.
public Send ( SendOrPostCallback d, object state ) : void
d SendOrPostCallback /// Callback to invoke ///
state object /// State to pass ///
리턴 void