Destroy spinlock when destroying the semaphore
This commit is contained in:
parent
c1b7d47be9
commit
e4ca21fa2e
@ -37,6 +37,8 @@ Semaphore_Destroy(Semaphore *sema)
|
||||
Spinlock_Lock(&semaListLock);
|
||||
LIST_REMOVE(sema, semaphoreList);
|
||||
Spinlock_Unlock(&semaListLock);
|
||||
|
||||
Spinlock_Destroy(&sema->lock);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user