mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* thread_pthread.c (native_thread_init, native_thread_destroy):
removed HAVE_PTHREAD_CONDATTR_INIT check because this silly #ifdef makes use-uninitialized-var issue and (2) native_cond_initialize() already have a right platform and caller don't need any additional care. [Bug #6825] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0ba4526d06
commit
9da62b63d9
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,11 @@
|
|||
Mon Nov 5 11:35:11 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
|
||||
|
||||
* thread_pthread.c (native_thread_init, native_thread_destroy):
|
||||
removed HAVE_PTHREAD_CONDATTR_INIT check because this silly
|
||||
#ifdef makes use-uninitialized-var issue and (2) native_cond_initialize()
|
||||
already have a right platform and caller don't need any additional care.
|
||||
[Bug #6825]
|
||||
|
||||
Mon Nov 5 10:57:59 2012 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/cgi/core.rb: check if Tempfile is defined before use it.
|
||||
|
|
|
@ -466,18 +466,14 @@ Init_native_thread(void)
|
|||
static void
|
||||
native_thread_init(rb_thread_t *th)
|
||||
{
|
||||
#ifdef HAVE_PTHREAD_CONDATTR_INIT
|
||||
native_cond_initialize(&th->native_thread_data.sleep_cond, RB_CONDATTR_CLOCK_MONOTONIC);
|
||||
#endif
|
||||
ruby_thread_set_native(th);
|
||||
}
|
||||
|
||||
static void
|
||||
native_thread_destroy(rb_thread_t *th)
|
||||
{
|
||||
#ifdef HAVE_PTHREAD_CONDATTR_INIT
|
||||
native_cond_destroy(&th->native_thread_data.sleep_cond);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifndef USE_THREAD_CACHE
|
||||
|
|
Loading…
Add table
Reference in a new issue