Changes to core.sync.event.Event wait() method?

Denis Feklushkin feklushkin.denis at
Wed Nov 11 18:32:23 UTC 2020


It looks like Event's bool wait() method may do a disservice. It 
returns false if Event struct isn't initialized.

Maybe implement mandatory ctor or replace conditions like:

     if (!m_event)
         return false;

by asserts?

This call (sometimes?) silently doesn't do anything because 
uninitialized Event instance called:

More information about the Digitalmars-d mailing list