Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sysc/scc/ordered_semaphore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ auto ordered_semaphore::wait(unsigned priority) -> int {
// lock (take) the semaphore, return -1 if not available

auto ordered_semaphore::trywait() -> int {
if(in_use()) {
if(value == 0) {
return -1;
}
--value;
Expand Down
Loading