Acess variable that was set by thread
pastaflora at idexoxos.ret
Mon Aug 8 01:36:45 UTC 2022
Hello, i have the following code, the flora contains a boolean
in the DerivedThread the boolean zeus was set to true; but when
i'm trying to access it
outside the thread in main it returns me false; any thoughts ?
class DerivedThread : Thread
// Derived thread running.
zeus = true;
auto derived = new DerivedThread().start();
More information about the Digitalmars-d-learn