C# Class Fibrous.ThreadFiber

Fiber implementation backed by a dedicated thread., needs a thread safe queue FiberBase
Inheritance: Fibrous.FiberBase
Exibir arquivo Open project: chrisa23/Fibrous Class Usage Examples

Public Methods

Method Description
StartNew ( ) : IFiber
StartNew ( IExecutor executor ) : IFiber
StartNew ( string name ) : IFiber
ThreadFiber ( ) : System
ThreadFiber ( IExecutor executor ) : System
ThreadFiber ( IExecutor executor, IFiberScheduler fiberScheduler, IQueue queue, string threadName, bool isBackground = true, ThreadPriority priority = ThreadPriority.Normal ) : System

Creates a thread fiber.

ThreadFiber ( IExecutor executor, IQueue queue ) : System
ThreadFiber ( IExecutor executor, string name ) : System
ThreadFiber ( string threadName ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void
InternalEnqueue ( System.Action action ) : void
InternalStart ( ) : void

Private Methods

Method Description
GetNextThreadId ( ) : int
RunThread ( ) : void

Method Details

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InternalEnqueue() protected method

protected InternalEnqueue ( System.Action action ) : void
action System.Action
return void

InternalStart() protected method

protected InternalStart ( ) : void
return void

StartNew() public static method

public static StartNew ( ) : IFiber
return IFiber

StartNew() public static method

public static StartNew ( IExecutor executor ) : IFiber
executor IExecutor
return IFiber

StartNew() public static method

public static StartNew ( string name ) : IFiber
name string
return IFiber

ThreadFiber() public method

public ThreadFiber ( ) : System
return System

ThreadFiber() public method

public ThreadFiber ( IExecutor executor ) : System
executor IExecutor
return System

ThreadFiber() public method

Creates a thread fiber.
public ThreadFiber ( IExecutor executor, IFiberScheduler fiberScheduler, IQueue queue, string threadName, bool isBackground = true, ThreadPriority priority = ThreadPriority.Normal ) : System
executor IExecutor
fiberScheduler IFiberScheduler
queue IQueue
threadName string
isBackground bool
priority ThreadPriority
return System

ThreadFiber() public method

public ThreadFiber ( IExecutor executor, IQueue queue ) : System
executor IExecutor
queue IQueue
return System

ThreadFiber() public method

public ThreadFiber ( IExecutor executor, string name ) : System
executor IExecutor
name string
return System

ThreadFiber() public method

public ThreadFiber ( string threadName ) : System
threadName string
return System