# Fastthread now default in ruby\_1\_8

**URL:** <https://www.ruby-forum.com/t/fastthread-now-default-in-ruby-1-8/85172>\
**Category:** Ruby\
**Created:** [February 10, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/fastthread-now-default-in-ruby-1-8/85172 "2007-02-10T23:02:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akinori\_MUSHA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Post date:** [February 10, 2007, 11:02pm UTC](https://www.ruby-forum.com/t/fastthread-now-default-in-ruby-1-8/85172/1 "2007-02-10T23:02:04Z")

</div>

Hi,

I have just finished integrating MenTaLguY’s fastthread mutex  
implementation into the ruby\_1\_8 branch.

The original, pure ruby version of lib/thread is still available as a  
configure option `–disable-fastthread’ so you can alternate the two.

If you find any compatibility problems or unexpected behavior with the  
new implementation, please let me know.

As I tend to be out of sync with ruby-talk, make sure to add  
ruby-core@ruby-lang to To/Cc on reply.

Regards,

–  
/  
/\_\_ \_\_ [Akinori.org](http://Akinori.org) / [MUSHA.org](http://MUSHA.org)  
/ ) ) ) ) / [FreeBSD.org](http://FreeBSD.org) / [Ruby-lang.org](http://Ruby-lang.org)  
Akinori MUSHA aka / (\_ / ( (\_\_( @ [iDaemons.org](http://iDaemons.org) / and.or.jp

“Different eyes see different things,  
Different hearts beat on different strings –  
But there are times for you and me when all such things agree”

---

<div class="post-metadata">

**Author:** ![Akinori\_MUSHA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Post date:** [February 14, 2007, 11:31pm UTC](https://www.ruby-forum.com/t/fastthread-now-default-in-ruby-1-8/85172/2 "2007-02-14T23:31:52Z")

</div>

On Sun, 2007-02-11 at 07:00 +0900, Akinori MUSHA wrote:

> If you find any compatibility problems or unexpected behavior with the  
> new implementation, please let me know.

The version of fastthread which was merged doesn’t handle interrupted  
waits correctly, which can result in an rb\_bug().

Please see Ruby bug #8663:

[http://rubyforge.org/tracker/index.php?func=detail&aid=8663&group\_id=426&atid=1698](http://rubyforge.org/tracker/index.php?func=detail&aid=8663&group_id=426&atid=1698)

A patch to fix the issue is attached (also posted to the bug tracker).

-mental

---

<div class="post-metadata">

**Author:** ![Akinori\_MUSHA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Post date:** [February 15, 2007, 3:57am UTC](https://www.ruby-forum.com/t/fastthread-now-default-in-ruby-1-8/85172/3 "2007-02-15T03:57:14Z")

</div>

At Thu, 15 Feb 2007 07:31:27 +0900,  
MenTaLguY wrote:

> A patch to fix the issue is attached (also posted to the bug tracker).

Thanks, just committed the patch.

–  
/  
/\_\_ \_\_ [Akinori.org](http://Akinori.org) / [MUSHA.org](http://MUSHA.org)  
/ ) ) ) ) / [FreeBSD.org](http://FreeBSD.org) / [Ruby-lang.org](http://Ruby-lang.org)  
Akinori MUSHA aka / (\_ / ( (\_\_( @ [iDaemons.org](http://iDaemons.org) / and.or.jp

“Different eyes see different things,  
Different hearts beat on different strings –  
But there are times for you and me when all such things agree”

---

<div class="post-metadata">

**Author:** ![Akinori\_MUSHA](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/b782af/32.png) [@Akinori\_MUSHA](https://www.ruby-forum.com/u/Akinori_MUSHA)\
**Post date:** [February 15, 2007, 7:47am UTC](https://www.ruby-forum.com/t/fastthread-now-default-in-ruby-1-8/85172/4 "2007-02-15T07:47:28Z")

</div>

On Thu, 2007-02-15 at 11:57 +0900, Akinori MUSHA wrote:

> > A patch to fix the issue is attached (also posted to the bug tracker).
> 
> Thanks, just committed the patch.

Thank you very much,

-mental
