Photon Server API
Public Member Functions | List of all members
ExitGames.Concurrency.Fibers.DispatcherFiber Class Reference

Adapts Dispatcher to a Fiber. Transparently moves actions onto the Dispatcher thread. More...

Inheritance diagram for ExitGames.Concurrency.Fibers.DispatcherFiber:
ExitGames.Concurrency.Fibers.GuiFiber ExitGames.Concurrency.Fibers.IFiber ExitGames.Concurrency.Core.ISubscriptionRegistry ExitGames.Concurrency.Core.IExecutionContext ExitGames.Concurrency.Core.IScheduler

Public Member Functions

 DispatcherFiber (Dispatcher dispatcher, DispatcherPriority priority, IExecutor executor)
 Constructs a Fiber that executes on dispatcher thread. More...
 
 DispatcherFiber (Dispatcher dispatcher, IExecutor executor)
 Constructs a Fiber that executes on dispatcher thread. More...
 
 DispatcherFiber (Dispatcher dispatcher, DispatcherPriority priority)
 Constructs a Fiber that executes on dispatcher thread. More...
 
 DispatcherFiber (Dispatcher dispatcher)
 Constructs a Fiber that executes on dispatcher thread. More...
 
 DispatcherFiber (DispatcherPriority priority)
 Constructs a Fiber that executes on dispatcher thread of the current dispatcher. More...
 
 DispatcherFiber ()
 Constructs a Fiber that executes on dispatcher thread of the current dispatcher. More...
 
- Public Member Functions inherited from ExitGames.Concurrency.Fibers.GuiFiber
 GuiFiber (IExecutionContext executionContext, IExecutor executor)
 Creates an instance. More...
 
void Enqueue (Action action)
 Enqueue a single action. More...
 
void RegisterSubscription (IDisposable toAdd)
 
bool DeregisterSubscription (IDisposable toRemove)
 
IDisposable Schedule (Action action, long firstInMs)
 IScheduler.Schedule(Action,long) More...
 
IDisposable ScheduleOnInterval (Action action, long firstInMs, long regularInMs)
 IScheduler.ScheduleOnInterval(Action,long,long) More...
 
void Start ()
 IFiber.Start() More...
 
void Dispose ()
 IDisposable.Dispose() More...
 
void Stop ()
 Stops the fiber. More...
 

Additional Inherited Members

- Properties inherited from ExitGames.Concurrency.Fibers.GuiFiber
int NumSubscriptions [get]
 

Detailed Description

Adapts Dispatcher to a Fiber. Transparently moves actions onto the Dispatcher thread.

Constructor & Destructor Documentation

ExitGames.Concurrency.Fibers.DispatcherFiber.DispatcherFiber ( Dispatcher  dispatcher,
DispatcherPriority  priority,
IExecutor  executor 
)
inline

Constructs a Fiber that executes on dispatcher thread.

Parameters
dispatcherThe dispatcher.
priorityThe priority.
executorThe executor.
ExitGames.Concurrency.Fibers.DispatcherFiber.DispatcherFiber ( Dispatcher  dispatcher,
IExecutor  executor 
)
inline

Constructs a Fiber that executes on dispatcher thread.

Parameters
dispatcherThe dispatcher.
executorThe priority.
ExitGames.Concurrency.Fibers.DispatcherFiber.DispatcherFiber ( Dispatcher  dispatcher,
DispatcherPriority  priority 
)
inline

Constructs a Fiber that executes on dispatcher thread.

Parameters
dispatcherThe dispatcher.
priorityThe priority.
ExitGames.Concurrency.Fibers.DispatcherFiber.DispatcherFiber ( Dispatcher  dispatcher)
inline

Constructs a Fiber that executes on dispatcher thread.

Parameters
dispatcherThe dispatcher.
ExitGames.Concurrency.Fibers.DispatcherFiber.DispatcherFiber ( DispatcherPriority  priority)
inline

Constructs a Fiber that executes on dispatcher thread of the current dispatcher.

Parameters
priorityThe priority.
ExitGames.Concurrency.Fibers.DispatcherFiber.DispatcherFiber ( )
inline

Constructs a Fiber that executes on dispatcher thread of the current dispatcher.