]> jspc29.x-matter.uni-frankfurt.de Git - daqdata.git/commitdiff
added pthread_attr_init (old: pthread_attr_create) to wrapper functions.
authorsailer <sailer>
Tue, 8 Jul 2003 15:08:22 +0000 (15:08 +0000)
committersailer <sailer>
Tue, 8 Jul 2003 15:08:22 +0000 (15:08 +0000)
-- Benjamin Sailer

compat/pthread.c
compat/pthread.h

index 6ad9d844528e094a04ea3ec5d7ec89e31da044f1..3fe48879ac4ec657e83b40e0392e39033edcaf88 100644 (file)
@@ -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);
index 4e587edcb73b83441c483b7d582550177b26e435..acabc10f43a2aa06da31362cf905d31582b9dbdf 100644 (file)
@@ -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