From 7415466d60d1ee5bbced95a31d13510067d11ca6 Mon Sep 17 00:00:00 2001 From: deischen Date: Wed, 29 Mar 2006 04:20:53 +0000 Subject: Account for recent changes in namespace.h. Use _pthread_create instead of pthread_create. --- lib/librt/sigev_thread.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/librt/sigev_thread.c b/lib/librt/sigev_thread.c index 2675171..928ba1e 100644 --- a/lib/librt/sigev_thread.c +++ b/lib/librt/sigev_thread.c @@ -67,7 +67,7 @@ static void *sigev_service_loop(void *); static void *worker_routine(void *); static void worker_cleanup(void *); -#pragma weak pthread_create +#pragma weak _pthread_create static void attrcopy(pthread_attr_t *src, pthread_attr_t *dst) @@ -102,7 +102,7 @@ attrcopy(pthread_attr_t *src, pthread_attr_t *dst) static __inline int have_threads(void) { - return (&pthread_create != NULL); + return (&_pthread_create != NULL); } void @@ -333,7 +333,7 @@ sigev_thread_create(int usedefault) sigdelset(&set, SIGSEGV); sigdelset(&set, SIGTRAP); _sigprocmask(SIG_SETMASK, &set, &oset); - ret = pthread_create(&tn->tn_thread, &sigev_default_attr, + ret = _pthread_create(&tn->tn_thread, &sigev_default_attr, sigev_service_loop, tn); _sigprocmask(SIG_SETMASK, &oset, NULL); @@ -410,7 +410,7 @@ sigev_service_loop(void *arg) sn->sn_flags |= SNF_WORKING; __sigev_list_unlock(); - ret = pthread_create(&td, &sn->sn_attr, worker_routine, sn); + ret = _pthread_create(&td, &sn->sn_attr, worker_routine, sn); if (ret != 0) { if (failure++ < 5) warnc(ret, "%s:%s failed to create thread.\n", -- cgit v1.1