Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 4, 2010
  1. @mame

    merges r28834 from trunk into ruby_1_9_2.

    mame authored
    --
    * thread_win32.c (native_thread_join): need to wait thread, of course.
      [ruby-dev:41911]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28855 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 5, 2010
  1. @akr

    * vm.c (Init_BareVM): call Init_native_thread here.

    akr authored
    * thread.c (Init_Thread): don't call Init_native_thread.
    
    * thread_pthread.c (Init_native_thread): exported.
    
    * thread_win32.c (Init_native_thread): ditto.
    
    [ruby-dev:41536]
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@28183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on May 5, 2010
  1. @wanabe

    * thread_win32.c (w32_wait_events): get GVL before handle interrupt

    wanabe authored
      event.   [ruby-core:27199], [ruby-core:29698]
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Apr 22, 2010
  1. @unak

    * thread_win32.c (ubf_handle): remove unused typedef.

    unak authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jan 4, 2010
  1. @unak

    * thread_win32.c (InterlockedExchangePointer): old SDK support.

    unak authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 30, 2009
  1. @unak

    * thread_win32.c (native_thread_destroy): decreased the probability of

    unak authored
      using the interrupt event in the thread termination.
      see [ruby-core:27199].
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  2. @unak

    * thread_win32.c (w32_error): should report the function.

    unak authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 18, 2009
  1. @nobu

    * thread.c (rb_thread_atfork_internal): reinitialize global lock

    nobu authored
      at fork to get rid of deadlock.  based on the patch from Hongli
      Lai in [ruby-core:26783].  [ruby-core:26361]
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 12, 2009
  1. @nobu

    * thread_win32.c (thread_errno): CreateThread does not set errno.

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

    * thread.c (thread_create_core): moved failure handling from

    nobu authored
      native_thread_core().
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 2, 2009
  1. @unak

    * thread_{pthread,win32}.c (native_stop_timer_thread): join the thread

    unak authored
      here.
    
    * thread_{pthread,win32}.c (native_reset_timer_thread): new function.
    
    * thread.c (rb_thread_stop_timer_thread, rb_thread_reset_timer_thread):
      call above function instead of simply seting 0.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25627 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Apr 19, 2009
  1. @nobu

    * eval.c (ruby_cleanup): the order of local variables on stack is

    nobu authored
      undefined.  should use outermost VALUE for ruby_init_stack.
    
    * gc.c (ruby_get_stack_grow_direction, Init_stack): allows volatile
      pointer.
    
    * thread_*.c (ruby_init_stack): ditto.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Dec 22, 2008
  1. @unak

    * thread_win32.c (Init_native_thread): need to call

    unak authored
    	  ruby_thread_set_native() here.
    
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 8, 2008
  1. @nobu

    * thread_pthread.c (thread_timer): checks working flags again.

    nobu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 7, 2008
  1. @nobu

    * thread_win32.c (thread_start_func_1): use already gotten stack info.

    nobu authored
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20132 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Nov 6, 2008
  1. @nobu

    * thread.c (rb_thread_stop_timer_thread): terminates timer thread

    nobu authored
      immediately.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Aug 28, 2008
  1. @unak

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

    unak authored
    	  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
Commits on Aug 13, 2008
  1. @ko1

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

    ko1 authored
      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
Commits on Jul 28, 2008
  1. @unak

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

    unak authored
    	  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
  2. @unak

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

    unak authored
    	  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
Commits on Jul 24, 2008
  1. @unak

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

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

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

    nobu authored
    * 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
Commits on Jul 15, 2008
  1. @unak

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

    unak authored
    	  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
Commits on Jul 9, 2008
  1. @nobu

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

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

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

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

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

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

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

    nobu authored
    * 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
Commits on Jun 21, 2008
  1. @unak

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

    unak authored
    	  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
Commits on Jun 19, 2008
  1. @ko1

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

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

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

    mame authored
      deadlock detection.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Commits on Jun 14, 2008
  1. @nobu

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

    nobu authored
    * 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
Commits on Jun 12, 2008
  1. @unak

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

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

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

    mame authored
      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
Commits on May 30, 2008
  1. @nobu

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

    nobu authored
      (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
Commits on Apr 26, 2008
  1. @nobu

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

    nobu authored
      suppress warnings.
    
    
    git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Something went wrong with that request. Please try again.