diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-27 05:25:13 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-01-27 05:25:13 +0000 |
commit | c0497c5b43f7d091ba8ed5c7a1995e204398a7cd (patch) | |
tree | 383cefb97c0ed73b10ef78625dc75526420889fb | |
parent | 185aca62a4a1bc66021112750ab9b6b652829d8e (diff) |
* eval.c (thread_init): used only for setitimer or threaded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | eval.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,4 +1,6 @@ -Wed Jan 27 14:23:36 2010 Nobuyoshi Nakada <[email protected]> +Wed Jan 27 14:25:12 2010 Nobuyoshi Nakada <[email protected]> + + * eval.c (thread_init): used only for setitimer or threaded. * ext/dl/dl.c (c_parray): get rid of a deprecated function. @@ -12417,7 +12417,9 @@ rb_thread_alloc(klass) return th; } +#if defined(HAVE_SETITIMER) || defined(_THREAD_SAFE) static int thread_init; +#endif #if defined(POSIX_SIGNAL) #define CATCH_VTALRM() posix_signal(SIGVTALRM, catch_timer) |