From: sailer Date: Tue, 8 Jul 2003 15:08:22 +0000 (+0000) Subject: added pthread_attr_init (old: pthread_attr_create) to wrapper functions. X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=946e60a3fa27298bdf7b0590897ce592d1637258;p=daqdata.git added pthread_attr_init (old: pthread_attr_create) to wrapper functions. -- Benjamin Sailer --- diff --git a/compat/pthread.c b/compat/pthread.c index 6ad9d84..3fe4887 100644 --- a/compat/pthread.c +++ b/compat/pthread.c @@ -20,6 +20,11 @@ int PTHREAD_pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *co return pthread_cond_init(cond, condattr == NULL ? pthread_condattr_default : condattr); } +int PTHREAD_pthread_attr_init(pthread_attr_t *attr) +{ + pthread_attr_create(attr); +} + int PTHREAD_pthread_attr_destroy(pthread_attr_t *attr) { pthread_attr_delete(attr); diff --git a/compat/pthread.h b/compat/pthread.h index 4e587ed..acabc10 100644 --- a/compat/pthread.h +++ b/compat/pthread.h @@ -35,6 +35,11 @@ LynxOS 2.5. The translation is done according to Appendix B in #endif #define pthread_create PTHREAD_pthread_create +#ifdef pthread_attr_init +#undef pthread_attr_init +#endif +#define pthread_attr_init PTHREAD_pthread_attr_init + #ifdef pthread_attr_destroy #undef pthread_attr_destroy #endif