Thread.this

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

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

Parameters

fn void function
()

The thread function.

sz size_t

The stack size for this thread.

In: fn must not be null.

Meta