Share via


ForkJoinWorkerThread.OnStart Method

Definition

Initializes internal state after construction but before processing any tasks.

[Android.Runtime.Register("onStart", "()V", "GetOnStartHandler")]
protected virtual void OnStart ();
[<Android.Runtime.Register("onStart", "()V", "GetOnStartHandler")>]
abstract member OnStart : unit -> unit
override this.OnStart : unit -> unit
Attributes

Remarks

Initializes internal state after construction but before processing any tasks. If you override this method, you must invoke super.onStart() at the beginning of the method. Initialization requires care: Most fields must have legal default values, to ensure that attempted accesses from other threads work correctly even before this thread starts processing tasks.

Java documentation for java.util.concurrent.ForkJoinWorkerThread.onStart().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to