Project

General

Profile

« Previous | Next » 

Revision bcf12936

Added by kosaki (Motohiro KOSAKI) about 11 years ago

  • thread_pthread.c (ARRAY_SIZE): new.
  • thread_pthread.c (gvl_acquire_common): use low priority
    notification for avoiding timer thread interval confusion.
    If we use timer_thread_pipe[1], every gvl_yield() request
    one more gvl_yield(). It lead to thread starvation.
    [Bug #7999] [ruby-core:53095]
  • thread_pthread.c (rb_reserved_fd_p): adds timer_thread_pipe_low
    to reserved fds.

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