mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-11 02:48:20 +00:00
8263871: On sem_destroy() failing we should assert
Reviewed-by: dholmes
This commit is contained in:
parent
96e5c3f1e0
commit
5b8233ba0a
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user