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

Busy waits on lock to execute. Can improve performance in certain situations. More...

Inheritance diagram for ExitGames.Concurrency.Core.BusyWaitQueue:
ExitGames.Concurrency.Core.IQueue

Public Member Functions

 BusyWaitQueue (IExecutor executor, int spinsBeforeTimeCheck, int msBeforeBlockingWait)
 
 BusyWaitQueue (int spinsBeforeTimeCheck, int msBeforeBlockingWait)
 
void Enqueue (Action action)
 Enqueue action. More...
 
void Run ()
 Execute actions until stopped. More...
 
void Stop ()
 Stop consuming actions. More...
 

Detailed Description

Busy waits on lock to execute. Can improve performance in certain situations.

Constructor & Destructor Documentation

ExitGames.Concurrency.Core.BusyWaitQueue.BusyWaitQueue ( IExecutor  executor,
int  spinsBeforeTimeCheck,
int  msBeforeBlockingWait 
)
inline

summary> BusyWaitQueue with default executor. /summary>

ExitGames.Concurrency.Core.BusyWaitQueue.BusyWaitQueue ( int  spinsBeforeTimeCheck,
int  msBeforeBlockingWait 
)
inline

Member Function Documentation

void ExitGames.Concurrency.Core.BusyWaitQueue.Enqueue ( Action  action)
inline

Enqueue action.

Parameters
action

Implements ExitGames.Concurrency.Core.IQueue.

void ExitGames.Concurrency.Core.BusyWaitQueue.Run ( )
inline

Execute actions until stopped.

Implements ExitGames.Concurrency.Core.IQueue.

void ExitGames.Concurrency.Core.BusyWaitQueue.Stop ( )
inline

Stop consuming actions.

Implements ExitGames.Concurrency.Core.IQueue.