Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Dec 25, 2008

  1. Yuki Yugui Sonoda

    merges r20914 from trunk into ruby_1_9_1.

    	* thread_win32.c (Init_native_thread): need to call
    	  ruby_thread_set_native() here.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@21002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui authored

Nov 30, 2008

  1. Yuki Yugui Sonoda

    * thread.c, thread_pthread.c, thread_win32.c: merges nobu's commits -

      r20117, r20123, r20124, r20127, r20132-r20134, r20138, r20140, r20141
      and r20160 - from trunk into ruby_1_9_1.
    
    * thread_pthread.c (thread_timer): checks working flags again.
    
    * thread_pthread.c (rb_thread_create_timer_thread): do not wait never
      coming signal if failed to create tiemr thread.
    
    * thread_pthread.c (native_cond_timedwait): returns error code.
    
    * thread_pthread.c (thread_timer, rb_thread_create_timer_thread):
      handshakes properly.
    
    * thread_pthread.c (thread_timer): initializes mutex each time.
    
    * thread_win32.c (thread_start_func_1): use already gotten stack info.
    
    * thread.c (thread_timer): pthread_cond_timedwait returns ETIMEDOUT
      when timed out.
    
    * thread_pthread.c (thread_timer): uses pthread_cond_timedwait always
      instead of pthread_kill.
    
    * thread.c (thread_timer): uses timedwait on cygwin.
    
    * thread.c (rb_thread_stop_timer_thread): terminates timer thread
      immediately.
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    yugui authored

Aug 28, 2008

  1. unak

    * win32/win32.c, include/ruby/win32.h (rb_w32_open): overlapped file

    	  I/O support.
    
    	* win32/win32.c, include/ruby/win32.h (rb_w32_pipe): overlapped pipe
    	  I/O support.
    
    	* wn32/win32.c (rb_w32_read, rb_w32_write): overlapped I/O support to
    	  enable canceling I/O.
    
    	* thread_win32.c (ubf_handle): remove workaround.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18897 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak authored

Aug 13, 2008

  1. Koichi Sasada

    * thread.c, vm_core.h: add manual priority support

      using time slice.  if you enable USE_NATIVE_THREAD_PRIORITY
      macro, this mechanism is ignored.  [ruby-dev:33124]
    * thread_pthread.c, thread_win32.c: ditto.
    * test/ruby/test_thread.rb: fix test parameter.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    ko1 authored

Jul 28, 2008

  1. unak

    * thread_win32.[ch] (cond_every_entry, rb_thread_cond_struct): reverted

    	  r18239 because r18245 made the changes unnecessary.
    
    	* thread.c (rb_mutex_struct): define after including thread_{pthread,
    	  win32}.c.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18248 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak authored
  2. unak

    * thread_win32.[ch]: moved definitions of cond_every_entry and

    	  rb_thread_cond_struct from .c to .h because rb_thread_cond_struct
    	  is used in vm_core.h.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak authored

Jul 24, 2008

  1. unak

    * win32/win32.c (overlapped_socket_io): avoid warnings.

    	* thread_win32.c (ubf_handle): refactoring.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak authored

Jul 16, 2008

  1. Nobuyoshi Nakada

    * thread.c (thread_start_func_2): wake up joining threads.

    * thread.c (sleep_forever, sleep_timeval): return when interrupted.
      [ruby-dev:35542]
    
    * thread.c (timer_thread_function): restore main thread status.
      [ruby-core:17270]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored

Jul 15, 2008

  1. unak

    * thread_win32.c (ubf_handle): cancel blocking IO if it can (only

    	  Vista). see [ruby-dev:35446]
    
    	* win32/win32.c (errmap): add ERROR_OPERATION_ABORTED as EINTR.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak authored

Jul 09, 2008

  1. Nobuyoshi Nakada

    * thread.c (sleep_forever): wait until timed out. [ruby-core:17270]

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored
  2. Nobuyoshi Nakada

    * thread_{pthread,win32}.c (native_sleep): wait until timed out.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored
  3. Nobuyoshi Nakada

    * thread_{pthread,win32}.c (rb_thread_create_timer_thread): needs more

      stack for debug.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored

Jul 05, 2008

  1. Nobuyoshi Nakada

    * thread.c (thread_initialize): NUM2INT() returns int.

    * thread.c (timer_thread_function), thread_pthread.c (thread_timer),
      thread_win32.c (timer_thread_func), thread_{pthread,win32}.c
      (rb_thread_create_timer_thread): passing VM.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17892 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored

Jun 21, 2008

  1. unak

    * thread_win32.c (native_sleep): must block reentrance when accessing

    	  th->unblock.
    	  fixed [ruby-core:17341], reported by Bill Kelly <billk at cts.com>
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak authored

Jun 19, 2008

  1. Koichi Sasada

    * thread_win32.c (native_sleep): fix to decrement sleeper count.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    ko1 authored
  2. Yusuke Endoh

    * thread.c, thread_win32.c, vm_core.h: try to remove false positive of

      deadlock detection.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    mame authored

Jun 14, 2008

  1. Nobuyoshi Nakada

    * gc.h (STACK_UPPER): moved from gc.c

    * thread.c, thread_{pthread,win32}.c (ruby_init_stack,
      ruby_thread_init_stack): moved stack initialization from gc.c.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored

Jun 12, 2008

  1. unak

    * thread_win32.c (native_sleep): fixed previous commit.

    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak authored
  2. Yusuke Endoh

    * thread.c, vm_core.h, vm.c, thread_pthread.c, thread_win32.c: add

      deadlock detection.  [ruby-dev:35044]
    
    * bootstraptest/test_thread.rb: add tests for above.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    mame authored

May 30, 2008

  1. Nobuyoshi Nakada

    * vm_core.h (struct rb_unblock_callback), thread.c

      (set_unblock_function), thread_{pthread,win32}.c (native_sleep):
      extracted from struct rb_thread_struct.
    
    * thread.c (reset_unblock_function): not check interrupts at leaving
      blocking region.  [ruby-dev:34874]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored

Apr 26, 2008

  1. Nobuyoshi Nakada

    * io.c, signal.c, thread.c, thread_win32.c, include/ruby/intern.h:

      suppress warnings.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored

Jan 18, 2008

  1. unak

    * thread_win32.c (w32_wait_events): shouldn't invoke interrupt handle

    	  by timer_thread.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    unak authored
  2. Nobuyoshi Nakada

    * thread.c (thread_cleanup_func): ignore errors from destroying mutex

      of dead thread.  [ruby-core:15069]
    
    * thread_pthread.c, thread_win32.c (native_thread_destroy): ditto.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    nobu authored

Jan 06, 2008

  1. akr

    * $Date$ keyword removed to avoid inclusion of locale dependent

      string.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    akr authored

Dec 25, 2007

  1. Koichi Sasada

    * thread_pthread.c, thread_pthread.h, thread_win32.c,

      thread_win32.c: make some functions static functions.
      a patch from Tadashi Saito <shiba AT mail2.accsnet.ne.jp>
      in [ruby-core:14407]
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    ko1 authored
  2. Koichi Sasada

    * vm_core.h, thread.c, cont.c: add RUBY_VM_SET_INTERRUPT(),

      RUBY_VM_SET_TIMER_INTERRUPT(), RUBY_VM_INTERRUPTED().
    * thread.c, thread_pthread.c, thread_win32.c: fix to ignore time slice
      event until sleep.
    * bootstraptest/test_thread.rb: add a test for time limited join test.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    ko1 authored

Dec 20, 2007

  1. Koichi Sasada

    * common.mk, *.ci: renamed to *.c.

    * eval_laod.c: renamed to load.c.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
    ko1 authored
Something went wrong with that request. Please try again.