X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=libcfs%2Finclude%2Flibcfs%2Futil%2Fplatform.h;h=52dcef52f9fea961cffcacfe9e953ab039da865d;hb=004cc2b4c6eb32672985e2f4b4bbf9413e314547;hp=8a17a838a6f74d11a1a7af15c2712b8eca3a2cad;hpb=59fbc0de17fff14558227b3de28d1f591cd366a6;p=fs%2Flustre-release.git diff --git a/libcfs/include/libcfs/util/platform.h b/libcfs/include/libcfs/util/platform.h index 8a17a83..52dcef5 100644 --- a/libcfs/include/libcfs/util/platform.h +++ b/libcfs/include/libcfs/util/platform.h @@ -60,7 +60,7 @@ extern void add_history(char *); #include #include -#if HAVE_LIBPTHREAD +#if HAVE_PTHREAD #include #include #include @@ -96,18 +96,18 @@ typedef VFunction rl_voidfunc_t; * POSIX compliant inter-process synchronization aren't supported well * in Darwin, pthread_mutex_t and pthread_cond_t can only work as * inter-thread synchronization, they wouldn't work even being put in - * shared memory for multi-process. PTHREAD_PROCESS_SHARED is not - * supported by Darwin also (pthread_mutexattr_setpshared() with the - * PTHREAD_PROCESS_SHARED attribute will return EINVAL). + * shared memory for multi-process. PTHREAD_PROCESS_SHARED is not + * supported by Darwin also (pthread_mutexattr_setpshared() with the + * PTHREAD_PROCESS_SHARED attribute will return EINVAL). * * The only inter-process sychronization mechanism can be used in Darwin * is POSIX NAMED semaphores and file lock, here we use NAMED semaphore - * to implement mutex and condition. + * to implement mutex and condition. * * XXX Liang: - * They are just proto-type now, more tests are needed. + * They are just proto-type now, more tests are needed. */ -#define L_LOCK_DEBUG (0) +#define L_LOCK_DEBUG (0) #define L_SEM_NAMESIZE 32 @@ -248,7 +248,7 @@ static inline void l_cond_broadcast(l_cond_t *cond) #endif /* HAVE_LIBREADLINE */ #include #include -#if HAVE_LIBPTHREAD +#if HAVE_PTHREAD #ifndef __WINNT__ #include #include @@ -263,7 +263,7 @@ typedef pthread_cond_t l_cond_t; #define l_cond_init(c) pthread_cond_init(c, NULL) #define l_cond_broadcast(c) pthread_cond_broadcast(c) #define l_cond_wait(c, s) pthread_cond_wait(c, s) -#endif /* HAVE_LIBPTHREAD */ +#endif /* HAVE_PTHREAD */ #endif /* __linux__ */