summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2016-08-03 10:23:42 +0000
committerkib <kib@FreeBSD.org>2016-08-03 10:23:42 +0000
commit60a7e914b7a7ce14c22f7ba6905a1bb18d998346 (patch)
tree18c98dbe9080624db1683aa3d7bbf9baec5989dc /lib
parentf0f9827a6a8e876da19ad1826acf0fbbe97ad82f (diff)
downloadFreeBSD-src-60a7e914b7a7ce14c22f7ba6905a1bb18d998346.zip
FreeBSD-src-60a7e914b7a7ce14c22f7ba6905a1bb18d998346.tar.gz
MFC r303393:
Remove empty initializer for the once facility.
Diffstat (limited to 'lib')
-rw-r--r--lib/libthr/thread/thr_init.c1
-rw-r--r--lib/libthr/thread/thr_once.c5
-rw-r--r--lib/libthr/thread/thr_private.h1
3 files changed, 0 insertions, 7 deletions
diff --git a/lib/libthr/thread/thr_init.c b/lib/libthr/thread/thr_init.c
index 77c2cf7..b5d1261 100644
--- a/lib/libthr/thread/thr_init.c
+++ b/lib/libthr/thread/thr_init.c
@@ -438,7 +438,6 @@ init_private(void)
_thr_urwlock_init(&_thr_atfork_lock);
_thr_umutex_init(&_thr_event_lock);
_thr_umutex_init(&_suspend_all_lock);
- _thr_once_init();
_thr_spinlock_init();
_thr_list_init();
_thr_wake_addr_init();
diff --git a/lib/libthr/thread/thr_once.c b/lib/libthr/thread/thr_once.c
index 4f70374..4492777 100644
--- a/lib/libthr/thread/thr_once.c
+++ b/lib/libthr/thread/thr_once.c
@@ -92,8 +92,3 @@ _pthread_once(pthread_once_t *once_control, void (*init_routine) (void))
_thr_umtx_wake(&once_control->state, INT_MAX, 0);
return (0);
}
-
-void
-_thr_once_init()
-{
-}
diff --git a/lib/libthr/thread/thr_private.h b/lib/libthr/thread/thr_private.h
index e2e8b0f..be626d9 100644
--- a/lib/libthr/thread/thr_private.h
+++ b/lib/libthr/thread/thr_private.h
@@ -773,7 +773,6 @@ void _thr_link(struct pthread *, struct pthread *) __hidden;
void _thr_unlink(struct pthread *, struct pthread *) __hidden;
void _thr_assert_lock_level(void) __hidden __dead2;
void _thr_ast(struct pthread *) __hidden;
-void _thr_once_init(void) __hidden;
void _thr_report_creation(struct pthread *curthread,
struct pthread *newthread) __hidden;
void _thr_report_death(struct pthread *curthread) __hidden;
OpenPOWER on IntegriCloud