posix: add _POSIX_SEM_NSEMS_MAX.
* have _SC__SEM_NSEMS_MAX return _POSIX_SEM_NSEMS_MAX, a per team limit instead of the global limit.
This commit is contained in:
@@ -6,10 +6,10 @@
|
||||
#define SYSTEM_REALTIME_SEM_H
|
||||
|
||||
|
||||
#include <unistd.h>
|
||||
#include <limits.h>
|
||||
|
||||
|
||||
#define MAX_POSIX_SEMS_PER_TEAM 128
|
||||
#define MAX_POSIX_SEMS_PER_TEAM _POSIX_SEM_NSEMS_MAX
|
||||
#define MAX_POSIX_SEMS 1024
|
||||
#define MAX_POSIX_SEM_VALUE _POSIX_SEM_VALUE_MAX
|
||||
|
||||
|
||||
Reference in New Issue
Block a user