<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/lib/timeout.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/timeout] Bump version to 0.3.1</title>
<updated>2022-12-05T08:13:18+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-12-05T08:12:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3909cfaa02f96976e2734948e356001345c133be'/>
<id>3909cfaa02f96976e2734948e356001345c133be</id>
<content type='text'>
https://github.com/ruby/timeout/commit/4941e8c871
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/timeout/commit/4941e8c871
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Explicit add the timeout thread to default ThreadGroup</title>
<updated>2022-09-27T16:59:35+00:00</updated>
<author>
<name>Lars Kanis</name>
<email>lars@greiz-reinsdorf.de</email>
</author>
<published>2022-09-25T09:14:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9d56d9975d867c94ab2a6d76e4482112ab6c3319'/>
<id>9d56d9975d867c94ab2a6d76e4482112ab6c3319</id>
<content type='text'>
Otherwise the timeout thread would be added to the ThreadGroup of the thread that makes the first call to Timeout.timeout .

Fixes bug 19020: https://bugs.ruby-lang.org/issues/19020

Add a test case to make sure the common thread doesn't leak to another ThreadGroup

https://github.com/ruby/timeout/commit/c4f1385c9a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Otherwise the timeout thread would be added to the ThreadGroup of the thread that makes the first call to Timeout.timeout .

Fixes bug 19020: https://bugs.ruby-lang.org/issues/19020

Add a test case to make sure the common thread doesn't leak to another ThreadGroup

https://github.com/ruby/timeout/commit/c4f1385c9a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Give a name to the background thread</title>
<updated>2022-07-13T12:16:15+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2022-07-13T11:48:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=8290d76647f8db9df6d18c654d723b14cf0b3507'/>
<id>8290d76647f8db9df6d18c654d723b14cf0b3507</id>
<content type='text'>
https://github.com/ruby/timeout/commit/5594ae2f4d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/timeout/commit/5594ae2f4d
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Keep a private reference to `Process.clock_gettime`</title>
<updated>2022-06-09T09:58:49+00:00</updated>
<author>
<name>Jean Boussier</name>
<email>jean.boussier@gmail.com</email>
</author>
<published>2022-06-08T13:44:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4e21b19a61aadd785df1d731d79265fef16fb7c8'/>
<id>4e21b19a61aadd785df1d731d79265fef16fb7c8</id>
<content type='text'>
`timeout 0.3.0` broke our test suite because we have some
tests that stubs `Process.clock_gettime` making it return
a value in the past, causing `Timeout` to trigger almost immediately.

I beleive it wasn't a problem before because it was relying on `Process.sleep`.

https://github.com/ruby/timeout/commit/e5911a303e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`timeout 0.3.0` broke our test suite because we have some
tests that stubs `Process.clock_gettime` making it return
a value in the past, causing `Timeout` to trigger almost immediately.

I beleive it wasn't a problem before because it was relying on `Process.sleep`.

https://github.com/ruby/timeout/commit/e5911a303e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Set the flag surely before return</title>
<updated>2022-05-25T10:50:47+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-05-25T10:50:36+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=cd6f87eefc35922d21a1889e038c9f50f229004f'/>
<id>cd6f87eefc35922d21a1889e038c9f50f229004f</id>
<content type='text'>
https://github.com/ruby/timeout/commit/f3a31abdfb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/timeout/commit/f3a31abdfb
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Hack to avoid leak checker</title>
<updated>2022-05-25T09:47:26+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2022-05-25T09:47:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=e77e233935007c418acdcac13de0e76e3b514fb0'/>
<id>e77e233935007c418acdcac13de0e76e3b514fb0</id>
<content type='text'>
https://github.com/ruby/timeout/commit/9a9b03b44c
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/timeout/commit/9a9b03b44c
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Bump version to 0.3.0</title>
<updated>2022-05-25T09:08:01+00:00</updated>
<author>
<name>Hiroshi SHIBATA</name>
<email>hsbt@ruby-lang.org</email>
</author>
<published>2022-05-25T08:55:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=fde4519af8762fccc8488d1972d984a1c44691f4'/>
<id>fde4519af8762fccc8488d1972d984a1c44691f4</id>
<content type='text'>
https://github.com/ruby/timeout/commit/f69f954a94
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/timeout/commit/f69f954a94
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Remove redundant done? check</title>
<updated>2022-05-18T22:19:42+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-05-15T11:51:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=75fcfb14169db9de7842eba0201b86a37e58a074'/>
<id>75fcfb14169db9de7842eba0201b86a37e58a074</id>
<content type='text'>
* It's already checked inside #interrupt.

https://github.com/ruby/timeout/commit/5f43254f81
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* It's already checked inside #interrupt.

https://github.com/ruby/timeout/commit/5f43254f81
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Synchronize all accesses to @done</title>
<updated>2022-05-18T22:19:41+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-05-15T11:49:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=240ac9eaa8d3dab8f7dd5f29f67c7ee8d4d05d86'/>
<id>240ac9eaa8d3dab8f7dd5f29f67c7ee8d4d05d86</id>
<content type='text'>
* So it is trivially correct.
* Performance seems the same overall.

https://github.com/ruby/timeout/commit/5e0d8e1637
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* So it is trivially correct.
* Performance seems the same overall.

https://github.com/ruby/timeout/commit/5e0d8e1637
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/timeout] Handle Timeout + fork and add test for it</title>
<updated>2022-05-18T22:19:40+00:00</updated>
<author>
<name>Benoit Daloze</name>
<email>eregontp@gmail.com</email>
</author>
<published>2022-05-15T11:43:29+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=354cd6f210c966327b1adffc0b81990827b77a0d'/>
<id>354cd6f210c966327b1adffc0b81990827b77a0d</id>
<content type='text'>
https://github.com/ruby/timeout/commit/4baee63b9b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/timeout/commit/4baee63b9b
</pre>
</div>
</content>
</entry>
</feed>
