The OpenD Programming Language

Fiber.this

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

  1. this(void function() fn, size_t sz, size_t guardPageSize)
  2. this(void delegate() dg, size_t sz, size_t guardPageSize)
    class Fiber
    nothrow
    this
    (
    void delegate
    ()
    dg
    ,
    size_t sz = pageSize * defaultStackPages
    ,)

Parameters

dg void delegate
()

The fiber function.

sz size_t

The stack size for this fiber.

guardPageSize size_t

size of the guard page to trap fiber's stack overflows. Beware that using this will increase the number of mmaped regions on platforms using mmap so an OS-imposed limit may be hit.

In: dg must not be null.

Meta