mirror of
https://github.com/amd/blis.git
synced 2026-05-11 09:39:59 +00:00
Changing ifdef for OSX pthread barriers
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
#ifdef BLIS_ENABLE_PTHREADS
|
||||
|
||||
#ifndef _POSIX_BARRIERS
|
||||
#ifdef __APPLE__
|
||||
|
||||
int pthread_barrier_init(pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count)
|
||||
{
|
||||
|
||||
@@ -39,7 +39,7 @@
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
#if !_POSIX_BARRIER
|
||||
#ifdef __APPLE__
|
||||
typedef int pthread_barrierattr_t;
|
||||
|
||||
struct pthread_barrier_s
|
||||
@@ -55,7 +55,7 @@ typedef struct pthread_barrier_s pthread_barrier_t;
|
||||
int pthread_barrier_init(pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count);
|
||||
int pthread_barrier_destroy(pthread_barrier_t *barrier);
|
||||
int pthread_barrier_wait(pthread_barrier_t *barrier);
|
||||
#endif // __APPLE__
|
||||
#endif
|
||||
|
||||
struct thread_comm_s
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user