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 | 8185c576abfb2d68cfc6b9d52722f549946e46b2 (patch) | |
tree | e8c70f2ce1505277bd20d132b3f3b7d2e5aa626c /thread_win32.c | |
parent | b07564c71326871f1344c9ea0577fb9fb807ad02 (diff) | |
download | ruby-8185c576abfb2d68cfc6b9d52722f549946e46b2.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_win32.c')
-rw-r--r-- | thread_win32.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/thread_win32.c b/thread_win32.c index d9a9bd1fd6..5d0c493276 100644 --- a/thread_win32.c +++ b/thread_win32.c @@ -113,13 +113,6 @@ gvl_yield(rb_vm_t *vm, rb_thread_t *th) gvl_acquire(vm, th); } - -static void -gvl_atfork(rb_vm_t *vm) -{ - rb_bug("gvl_atfork() is called on win32"); -} - static void gvl_init(rb_vm_t *vm) { |