Thread.this

Initializes a thread object which is associated with a dynamic D function.

  1. this(void function() fn, size_t sz = 0)
  2. this(void delegate() dg, size_t sz = 0)
    class Thread
    this
    @safe pure nothrow @nogc
    (
    void delegate(
    )
    dg
    ,
    size_t sz = 0
    )
    in { assert (dg); }

Parameters

dg
Type: void delegate(
)

The thread function.

sz
Type: size_t

The stack size for this thread.

In: dg must not be null.

Suggestion Box / Bug Report