April 13, 2003 Thread.wait() | ||||
---|---|---|---|---|
| ||||
Maize The documentation for Thread says: void wait(); Wait for this thread to terminate. Throws ThreadError if the thread hasn't begun yet or has already terminated or is called on itself Thankfully these are not the semantics apparent in thread.d. void wait() { if (this === getThis()) error("wait on self"); if (state == TS.RUNNING) { DWORD dw; dw = WaitForSingleObject(hdl, 0xFFFFFFFF); } } Presumably the doc is just out-of-date. Is this correct? |
April 20, 2003 Re: Thread.wait() | ||||
---|---|---|---|---|
| ||||
Posted in reply to Matthew Wilson | I think the doc is wrong. "Matthew Wilson" <dmd@synesis.com.au> wrote in message news:b7aftr$s24$1@digitaldaemon.com... > Maize > The documentation for Thread says: > > void wait(); > Wait for this thread to terminate. Throws ThreadError if the thread hasn't > begun yet or has already terminated or is called on itself > Thankfully these are not the semantics apparent in thread.d. > > void wait() > { > if (this === getThis()) > error("wait on self"); > if (state == TS.RUNNING) > { DWORD dw; > dw = WaitForSingleObject(hdl, 0xFFFFFFFF); > } > } > > Presumably the doc is just out-of-date. Is this correct? > > |
Copyright © 1999-2021 by the D Language Foundation