[ruby-cvs:53552] nobu:r46406 (trunk): thread.c: fix for non-scalar pthread_t

nobu at ruby-lang.org nobu at ruby-lang.org
Wed Jun 11 17:38:10 JST 2014


nobu	2014-06-11 17:38:09 +0900 (Wed, 11 Jun 2014)

  New Revision: 46406

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46406

  Log:
    thread.c: fix for non-scalar pthread_t
    
    * configure.in (rb_cv_scalar_pthread_t): pthread_t is not required
      to be a scalar type.
    * thread.c (fill_thread_id_string, thread_id_str): dump pthread_t
      in hexadecimal form if it is not a scalar type, assume it can be
      represented in a pointer form otherwise.  based on the patch by
      Rei Odaira at [ruby-core:62867].  [ruby-core:62857] [Bug #9884]
    * thread_pthread.c (Init_native_thread, thread_start_func_1),
      (native_thread_create): set thread_id_str if needed.
    * vm_core.h (rb_thread_t): add thread_id_string if needed.

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/thread.c
    trunk/thread_pthread.c
    trunk/vm.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list