Thread.this

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

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

Parameters

fn
Type: void function(
)

The thread function.

sz
Type: size_t

The stack size for this thread.

In: fn must not be null.

Suggestion Box / Bug Report