Summary: core.Thread constructors don't accept shared delegates
           Product: D
           Version: 2.030
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos

--- Comment #0 from Justin Spahr-Summers <> 
2010-03-07 22:37:07 CST ---
It seems logical that Thread objects should be constructed with delegates
marked "shared," but there's no way to do this right now:

import core.thread;

class A {
    void doSomethingMultithreaded () shared {
        // blah blah

void main () {
    auto a = new shared(A)();
    auto t = new Thread(&a.doSomethingMultithreaded);

Even in lieu of making it mandatory, an overloaded constructor making use of
this would be helpful.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to