Thread Sub-Classes

Brian White bcwhite at pobox.com
Sun Mar 30 14:20:27 PDT 2008


If I inherit from Thread to create a new sub-class, how can I make the
main thread be of that type?

class MyThread : Thread
{
   [...]
}

void main(char[][] argv)
{
   MyThread mine = Thread.getThis();
   [...]
}

Thanks!

-- Brian


More information about the Digitalmars-d-learn mailing list