Thread.this

Create a thread with user data. Thread is not created until start has been called.

  1. this(ThreadDelegate callback, size_t stackSize)
    struct Thread
    nothrow @nogc
    this
  2. this(ThreadDelegateUser callback, size_t stackSize, void* userData)

Parameters

callback ThreadDelegate

The delegate that will be called by the thread.

stackSize size_t

The thread stack size in bytes. 0 for default size.

Meta