mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-02 15:40:55 -08:00
Flag PTHREAD_MUTEX_ERRORCHECK_NP is PTHREAD_MUTEX_ERRORCHECK in FreeBSD
This commit is contained in:
parent
5d20dbd086
commit
a19d3afbeb
3 changed files with 6 additions and 4 deletions
|
|
@ -284,11 +284,7 @@ init_threads()
|
|||
|
||||
cl_core.processes = OBJNULL;
|
||||
pthread_mutexattr_init(&attr);
|
||||
#if defined(__APPLE__)
|
||||
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK);
|
||||
#else
|
||||
pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_ERRORCHECK_NP);
|
||||
#endif
|
||||
pthread_mutex_init(&cl_core.global_lock, &attr);
|
||||
pthread_mutexattr_destroy(&attr);
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@ typedef unsigned short uint16_t;
|
|||
# undef ERROR
|
||||
# else
|
||||
# include <pthread.h>
|
||||
# if defined(__APPLE__) || defined(freebsd)
|
||||
# define PTHREAD_MUTEX_ERROR_CHECK_NP PTHREAD_MUTEX_ERROR_CHECK_NP
|
||||
# endif
|
||||
# endif
|
||||
# define start_critical_section()
|
||||
# define end_critical_section()
|
||||
|
|
|
|||
|
|
@ -43,6 +43,9 @@ typedef unsigned short uint16_t;
|
|||
# undef ERROR
|
||||
# else
|
||||
# include <pthread.h>
|
||||
# if defined(__APPLE__) || defined(freebsd)
|
||||
# define PTHREAD_MUTEX_ERROR_CHECK_NP PTHREAD_MUTEX_ERROR_CHECK_NP
|
||||
# endif
|
||||
# endif
|
||||
# define start_critical_section()
|
||||
# define end_critical_section()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue