www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 13166] New: pause and resume threads


          Issue ID: 13166
           Summary: pause and resume threads
           Product: D
           Version: D2
          Hardware: x86_64
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: Phobos
          Assignee: nobody puremagic.com
          Reporter: sycam.inc gmail.com

the core.thread class should have some mechanism for pausing or resuming
threads or alternately should expose the OS thread handles so we can use OS
specific thread functions (Not Advised)

on windows it would be a wrapper for suspendthread and ResumeThread
however on POSIX you would have to implement your own mechanism for doing so as
pthread doesn't provide any such mechanism.

Jul 20 2014