mirror of
https://github.com/upa/mscp.git
synced 2026-02-16 10:54:47 +08:00
macOS does not support sem_init. use sem_open instead
This commit is contained in:
@@ -3,7 +3,12 @@
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
int nr_cpus();
|
||||
#ifndef PSEMNAMLEN /* defined in macOS, but not in Linux */
|
||||
#define PSEMNAMLEN 31
|
||||
#endif
|
||||
|
||||
int nr_cpus(void);
|
||||
int set_thread_affinity(pthread_t tid, int core);
|
||||
int get_random(int max);
|
||||
|
||||
#endif /* _PLATFORM_H_ */
|
||||
|
||||
Reference in New Issue
Block a user