C# Class Brunet.Cdc.LocalHashTable

Inheritance: HashTable
Exibir arquivo Open project: pstjuste/brunet

Protected Properties

Property Type Description
_ht System.Collections.Hashtable
_rand System.Random
_sync object

Public Methods

Method Description
BeginCompareSwap ( MemBlock key, MemBlock new_value, MemBlock old_value, AsyncCallback cb, object state ) : IAsyncResult
BeginRead ( MemBlock key, AsyncCallback cb, object state ) : IAsyncResult
BeginSwap ( MemBlock key, MemBlock new_value, AsyncCallback cb, object state ) : IAsyncResult
CreateRandomKey ( ) : MemBlock
EndCompareSwap ( IAsyncResult r ) : MemBlock
EndRead ( IAsyncResult r ) : MemBlock
EndSwap ( IAsyncResult r ) : MemBlock
LocalHashTable ( ) : NUnit.Framework

Private Methods

Method Description
TestCAS ( ) : void
TestRecall ( ) : void

Method Details

BeginCompareSwap() public method

public BeginCompareSwap ( MemBlock key, MemBlock new_value, MemBlock old_value, AsyncCallback cb, object state ) : IAsyncResult
key MemBlock
new_value MemBlock
old_value MemBlock
cb AsyncCallback
state object
return IAsyncResult

BeginRead() public method

public BeginRead ( MemBlock key, AsyncCallback cb, object state ) : IAsyncResult
key MemBlock
cb AsyncCallback
state object
return IAsyncResult

BeginSwap() public method

public BeginSwap ( MemBlock key, MemBlock new_value, AsyncCallback cb, object state ) : IAsyncResult
key MemBlock
new_value MemBlock
cb AsyncCallback
state object
return IAsyncResult

CreateRandomKey() public method

public CreateRandomKey ( ) : MemBlock
return MemBlock

EndCompareSwap() public method

public EndCompareSwap ( IAsyncResult r ) : MemBlock
r IAsyncResult
return MemBlock

EndRead() public method

public EndRead ( IAsyncResult r ) : MemBlock
r IAsyncResult
return MemBlock

EndSwap() public method

public EndSwap ( IAsyncResult r ) : MemBlock
r IAsyncResult
return MemBlock

LocalHashTable() public method

public LocalHashTable ( ) : NUnit.Framework
return NUnit.Framework

Property Details

_ht protected_oe property

protected System.Collections.Hashtable _ht
return System.Collections.Hashtable

_rand protected_oe property

protected Random,System _rand
return System.Random

_sync protected_oe property

protected object _sync
return object