mirror of
https://github.com/microsoft/mscclpp.git
synced 2026-05-11 17:00:22 +00:00
Fix the bug, make sure a thread will be wake up if semaphore be released. This pull request includes a modification to the `DeviceSemaphore` struct in the `concurrency_device.hpp` file, specifically in the `acquire` method. The change refines the logic for acquiring a semaphore by adjusting the condition used to handle contention scenarios.