From 60a7e914b7a7ce14c22f7ba6905a1bb18d998346 Mon Sep 17 00:00:00 2001 From: kib Date: Wed, 3 Aug 2016 10:23:42 +0000 Subject: MFC r303393: Remove empty initializer for the once facility. --- lib/libthr/thread/thr_init.c | 1 - lib/libthr/thread/thr_once.c | 5 ----- lib/libthr/thread/thr_private.h | 1 - 3 files changed, 7 deletions(-) (limited to 'lib/libthr/thread') 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; -- cgit v1.1