March 09, 2006 [Bug 28] New: Documentation | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/bugzilla/show_bug.cgi?id=28 Summary: Documentation Product: D Version: unspecified Platform: PC URL: http://www.digitalmars.com/d/phobos/std_thread.html OS/Version: Windows Status: NEW Severity: normal Priority: P2 Component: Phobos AssignedTo: braddr@puremagic.com ReportedBy: benoit@tionex.de In the specification/doc of std.thread: 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. The implementation does throw an exception if called on itself: OK The implementation does throw an exception if pthread_join does not succeed: OK But throwing an exception if the thread is allready terminated not implemented nor would this be useful - you cannot check that the thread is running and be sure that until calling the .wait, the thread does not terminate. So, like it is implemented, wait should return without exception if the thread is terminated. -- |
March 10, 2006 [Bug 28] Documentation | ||||
---|---|---|---|---|
| ||||
Posted in reply to d-bugmail | http://d.puremagic.com/bugzilla/show_bug.cgi?id=28 walter@digitalmars.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED -- |
Copyright © 1999-2021 by the D Language Foundation