What is the proper way to ensure that only the ‘last-in’ thread is given access to a mutex/locked region while intermediary threads do not acquire the lock? Example sequence: A acquires lock B waits C waits B fails to acquire lock* A releases lock C acquires lock *B should fail to acquire the lock either […]
The post Thread synchronization (locking) that only releases to the last-in thread appeared first on BlogoSfera.