C# Class Helios.Util.FastThreadLocal

ファイルを表示 Open project: helios-io/helios Class Usage Examples

Public Methods

Method Description
Destroy ( ) : void
Remove ( InternalThreadLocalMap threadLocalMap ) : void

Sets the value to uninitialized; a proceeding call to get() will trigger a call to GetInitialValue().

RemoveAll ( ) : void

Removes all {@link FastThreadLocal} variables bound to the current thread. This operation is useful when you are in a container environment, and you don't want to leave the thread local variables in the threads you do not manage.

Protected Methods

Method Description
AddToVariablesToRemove ( InternalThreadLocalMap threadLocalMap, FastThreadLocal variable ) : void
RemoveFromVariablesToRemove ( InternalThreadLocalMap threadLocalMap, FastThreadLocal variable ) : void

Method Details

AddToVariablesToRemove() protected static method

protected static AddToVariablesToRemove ( InternalThreadLocalMap threadLocalMap, FastThreadLocal variable ) : void
threadLocalMap InternalThreadLocalMap
variable FastThreadLocal
return void

Destroy() public static method

public static Destroy ( ) : void
return void

Remove() public abstract method

Sets the value to uninitialized; a proceeding call to get() will trigger a call to GetInitialValue().
public abstract Remove ( InternalThreadLocalMap threadLocalMap ) : void
threadLocalMap InternalThreadLocalMap
return void

RemoveAll() public static method

Removes all {@link FastThreadLocal} variables bound to the current thread. This operation is useful when you are in a container environment, and you don't want to leave the thread local variables in the threads you do not manage.
public static RemoveAll ( ) : void
return void

RemoveFromVariablesToRemove() protected static method

protected static RemoveFromVariablesToRemove ( InternalThreadLocalMap threadLocalMap, FastThreadLocal variable ) : void
threadLocalMap InternalThreadLocalMap
variable FastThreadLocal
return void