Skip to content
Permalink
Browse files
8263871: On sem_destroy() failing we should assert
Reviewed-by: dholmes
  • Loading branch information
tstuefe committed Mar 20, 2021
1 parent 96e5c3f commit 5b8233ba0a1c97a8917d19908248b5b7aaa2ff76
Showing 1 changed file with 2 additions and 1 deletion.
@@ -46,7 +46,8 @@ PosixSemaphore::PosixSemaphore(uint value) {
}

PosixSemaphore::~PosixSemaphore() {
sem_destroy(&_semaphore);
int ret = sem_destroy(&_semaphore);
assert_with_errno(ret == 0, "sem_destroy failed");
}

void PosixSemaphore::signal(uint count) {

0 comments on commit 5b8233b

Please sign in to comment.