3 ms·
I think you would boolean-OR the locks, so if any of the corresponding mutexes are unlocked, the resource is unlocked.
by sp332 16y ago
I think you would boolean-OR the locks, so if any of the corresponding mutexes are unlocked, the resource is unlocked.
- DanWaterworth 16y agoThat wouldn't work because then you could lock the same resource twice.