mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:07:44 +00:00
LibPthread: Ensure we're not overflowing the semaphore's value
This commit is contained in:
parent
62ced35346
commit
98403eccb0
2 changed files with 18 additions and 2 deletions
|
@ -26,6 +26,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <limits.h>
|
||||
#include <pthread.h>
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -48,4 +49,6 @@ int sem_trywait(sem_t*);
|
|||
int sem_unlink(const char*);
|
||||
int sem_wait(sem_t*);
|
||||
|
||||
#define SEM_VALUE_MAX INT_MAX
|
||||
|
||||
__END_DECLS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue