Skip to content

Commit

Permalink
Update synch-sem.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
aksudya authored Jun 21, 2018
1 parent 76ab987 commit 1212a61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion threads/synch-sem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ bool Lock::isHeldByCurrentThread()
Condition::Condition(char* debugName)
{
name = debugName;
sem = new Semaphore("LockSemaphore", 1);
sem = new Semaphore("LockSemaphore", 0);
inte = new Semaphore("InterruptSemaphore", 1);
blockNum = 0;
}
Expand Down

0 comments on commit 1212a61

Please sign in to comment.