diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-09 01:46:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-05-09 01:46:37 +0000 |
commit | a46df859ccc62fd7847d112b898b3dd5b694f2f7 (patch) | |
tree | e8c70f2ce1505277bd20d132b3f3b7d2e5aa626c /thread.c | |
parent | e6709f0a62215ca4e9dd0d29a546a77cda4a8cb6 (diff) | |
download | ruby-a46df859ccc62fd7847d112b898b3dd5b694f2f7.tar.gz |
thread.c: clear atfork functions
* thread.c (rb_thread_atfork, rb_thread_atfork_before_exec): do
nothing unless working fork is available.
* thread_sync.c (rb_mutex_abandon_all): define only if working
fork is available.
* thread_sync.c (rb_mutex_abandon_keeping_mutexes): ditto.
* thread_sync.c (rb_mutex_abandon_locking_mutex): ditto.
* thread_win32.c (gvl_init): never used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -3917,6 +3917,7 @@ rb_thread_start_timer_thread(void) rb_thread_create_timer_thread(); } +#if defined(HAVE_WORKING_FORK) static int clear_coverage_i(st_data_t key, st_data_t val, st_data_t dummy) { @@ -3992,6 +3993,17 @@ rb_thread_atfork_before_exec(void) { rb_thread_atfork_internal(terminate_atfork_before_exec_i); } +#else +void +rb_thread_atfork(void) +{ +} + +void +rb_thread_atfork_before_exec(void) +{ +} +#endif struct thgroup { int enclosed; |