lock
lock copied to clipboard
Nonblocking check for mutex
We are working with a queue system. If one mutex is already used, I would like it to be possible to put the job back on the queue. Like
Mutex::check(....)->then(If the mutex is free)->fail(If the mutex is not free)