diff options
| author | 2012-03-22 15:26:04 +0000 | |
|---|---|---|
| committer | 2012-03-22 15:26:04 +0000 | |
| commit | b8477d8591d8370f2cff25a43a939e0638365b18 (patch) | |
| tree | 4e0f711c76e1783ee0e1e0a7dfedb13cd1a38f1f /lib/librthread/rthread_sched.c | |
| parent | + diagnostic (diff) | |
| download | wireguard-openbsd-b8477d8591d8370f2cff25a43a939e0638365b18.tar.xz wireguard-openbsd-b8477d8591d8370f2cff25a43a939e0638365b18.zip | |
Remove pthread_suspend* and related functions. This is part of the
rthreads major library bump from last night. okay kettenis@
Diffstat (limited to '')
| -rw-r--r-- | lib/librthread/rthread_sched.c | 51 |
1 files changed, 1 insertions, 50 deletions
diff --git a/lib/librthread/rthread_sched.c b/lib/librthread/rthread_sched.c index 6009e35c84f..2a63e5d3633 100644 --- a/lib/librthread/rthread_sched.c +++ b/lib/librthread/rthread_sched.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rthread_sched.c,v 1.11 2012/02/21 01:42:02 guenther Exp $ */ +/* $OpenBSD: rthread_sched.c,v 1.12 2012/03/22 15:26:04 kurt Exp $ */ /* * Copyright (c) 2004,2005 Ted Unangst <tedu@openbsd.org> * All Rights Reserved. @@ -129,52 +129,3 @@ pthread_yield(void) sched_yield(); } -int -pthread_suspend_np(pthread_t thread) -{ - int errn = 0; - - if (thread == pthread_self()) - return (EDEADLK); - - /* XXX unimplemented */ - errn = ENOTSUP; - return (errn); -} - -void -pthread_suspend_all_np(void) -{ - pthread_t t; - pthread_t self = pthread_self(); - - _spinlock(&_thread_lock); - LIST_FOREACH(t, &_thread_list, threads) - if (t != self) - pthread_suspend_np(t); - _spinunlock(&_thread_lock); -} - -int -pthread_resume_np(pthread_t thread) -{ - int errn = 0; - - /* XXX unimplemented */ - errn = ENOTSUP; - return (errn); -} - -void -pthread_resume_all_np(void) -{ - pthread_t t; - pthread_t self = pthread_self(); - - _spinlock(&_thread_lock); - LIST_FOREACH(t, &_thread_list, threads) - if (t != self) - pthread_resume_np(t); - _spinunlock(&_thread_lock); -} - |
