Android Guides | Samples

Java.Lang.InheritableThreadLocal Class

A thread-local variable whose value is passed from parent to child thread.

See Also: InheritableThreadLocal

Syntax

[Android.Runtime.Register("java/lang/InheritableThreadLocal", DoNotGenerateAcw=true)]
public class InheritableThreadLocal : ThreadLocal

Remarks

A thread-local variable whose value is passed from parent to child thread. By default, the value of an inheritable thread-local variable of a child thread is initialized with the value of the parent thread's variable at thread creation time. However, subclasses may override {code #childValue(Object)} to provide an arbitrary function for passing the value of a parent's thread-local variable to the child's thread-local variable.

See Also

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Java.Lang.InheritableThreadLocal are listed below.

See Also: ThreadLocal

Public Constructors

Creates a new inheritable thread-local variable.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.