2 ms·
the function that will be affected by the thread blocking might not be the one that has created the thread so it might not have a chance to set the flag. Of co
by gpderetta 6y ago
the function that will be affected by the thread blocking might not be the one that has created the thread so it might not have a chance to set the flag.
Of course you can handle it by declaring and documenting preconditions and so on, but, when possible, enforcing these sort of things at the type level is better.