C# Class Brunet.Concurrent.Channel

Mostra file Open project: pstjuste/brunet Class Usage Examples

Public Properties

Property Type Description
State object

Protected Properties

Property Type Description
_close_event FireOnceEvent
_closed int
_count int
_enqueues int
_max_enqueues int
_queue LockFreeQueue

Public Methods

Method Description
Channel ( ) : System.Collections
Channel ( int max_enq ) : System.Collections
Channel ( int max_enqueues, object state ) : System.Collections
Close ( ) : bool
CloseAfterEnqueue ( ) : bool
Dequeue ( ) : object
Enqueue ( object a ) : int
Peek ( ) : object

Protected Methods

Method Description
FireEnqueue ( ) : void

Private Methods

Method Description
ChannelTests ( ) : void

Method Details

Channel() public method

public Channel ( ) : System.Collections
return System.Collections

Channel() public method

public Channel ( int max_enq ) : System.Collections
max_enq int
return System.Collections

Channel() public method

public Channel ( int max_enqueues, object state ) : System.Collections
max_enqueues int
state object
return System.Collections

Close() public method

public Close ( ) : bool
return bool

CloseAfterEnqueue() public method

public CloseAfterEnqueue ( ) : bool
return bool

Dequeue() public method

public Dequeue ( ) : object
return object

Enqueue() public method

public Enqueue ( object a ) : int
a object
return int

FireEnqueue() protected method

protected FireEnqueue ( ) : void
return void

Peek() public method

public Peek ( ) : object
return object

Property Details

State public_oe property

public object State
return object

_close_event protected_oe property

protected FireOnceEvent,Brunet.Concurrent _close_event
return FireOnceEvent

_closed protected_oe property

protected int _closed
return int

_count protected_oe property

protected int _count
return int

_enqueues protected_oe property

protected int _enqueues
return int

_max_enqueues protected_oe property

protected int _max_enqueues
return int

_queue protected_oe property

protected LockFreeQueue _queue
return LockFreeQueue