diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-06 10:59:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-06 10:59:03 +0000 |
commit | 28937bf81f25eb950afe94809174ffc6eced3dd8 (patch) | |
tree | 7ca40395865f393a1112d5674a25983f35d09eec /thread_pthread.c | |
parent | 9b68d667c71480c31ad41a8db1e111995abde73a (diff) | |
download | ruby-28937bf81f25eb950afe94809174ffc6eced3dd8.tar.gz |
* thread_pthread.c (register_cached_thread_and_wait): move invalid
storage class function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30810 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index aabf36de42..ad6f716a3f 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -345,6 +345,10 @@ native_thread_destroy(rb_thread_t *th) #define USE_THREAD_CACHE 0 +#if USE_THREAD_CACHE +static rb_thread_t *register_cached_thread_and_wait(void); +#endif + #if defined HAVE_PTHREAD_GETATTR_NP || defined HAVE_PTHREAD_ATTR_GET_NP #define STACKADDR_AVAILABLE 1 #elif defined HAVE_PTHREAD_GET_STACKADDR_NP && defined HAVE_PTHREAD_GET_STACKSIZE_NP @@ -525,7 +529,6 @@ thread_start_func_1(void *th_ptr) if (1) { /* cache thread */ rb_thread_t *th; - static rb_thread_t *register_cached_thread_and_wait(void); if ((th = register_cached_thread_and_wait()) != 0) { th_ptr = (void *)th; th->thread_id = pthread_self(); |