diff options
author | kib <kib@FreeBSD.org> | 2016-08-03 10:23:42 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2016-08-03 10:23:42 +0000 |
commit | 60a7e914b7a7ce14c22f7ba6905a1bb18d998346 (patch) | |
tree | 18c98dbe9080624db1683aa3d7bbf9baec5989dc | |
parent | f0f9827a6a8e876da19ad1826acf0fbbe97ad82f (diff) | |
download | FreeBSD-src-60a7e914b7a7ce14c22f7ba6905a1bb18d998346.zip FreeBSD-src-60a7e914b7a7ce14c22f7ba6905a1bb18d998346.tar.gz |
MFC r303393:
Remove empty initializer for the once facility.
-rw-r--r-- | lib/libthr/thread/thr_init.c | 1 | ||||
-rw-r--r-- | lib/libthr/thread/thr_once.c | 5 | ||||
-rw-r--r-- | lib/libthr/thread/thr_private.h | 1 |
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; |