News for hackers. Stuff that matters.
Re:V8 adds support for top-level await by random314 on Wednesday September 25, 2019 @11:56AM (#21071993)
When your program is single threaded, a simple boolean flag variable can act as a mutex, you don't need a mutex for this.

Mutexes are for situations where flag variables can change state between your instructions to check and set a flag. This can only happen in multithreaded or interrupt driven code.

There are no comments on this comment yet.