diff options
author | deischen <deischen@FreeBSD.org> | 2006-03-29 04:20:53 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2006-03-29 04:20:53 +0000 |
commit | 7415466d60d1ee5bbced95a31d13510067d11ca6 (patch) | |
tree | 0a650b0fa74d4a7ff12246403fff12babdbb94da /lib/librt | |
parent | ea86aa372663046ef03bd6c84de06e036144cb35 (diff) | |
download | FreeBSD-src-7415466d60d1ee5bbced95a31d13510067d11ca6.zip FreeBSD-src-7415466d60d1ee5bbced95a31d13510067d11ca6.tar.gz |
Account for recent changes in namespace.h. Use _pthread_create
instead of pthread_create.
Diffstat (limited to 'lib/librt')
-rw-r--r-- | lib/librt/sigev_thread.c | 8 |
1 files changed, 4 insertions, 4 deletions
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", |