[MacRuby-devel] [MacRuby] #768: Timeout is broken. It seems MacRuby does not dispatch the Thread.

Watson watson1978 at gmail.com
Thu Jul 1 10:41:34 PDT 2010


Hi.

Do you mean that it is a problem to use a MainThread?
I post a patch that do not use a MainThread.

Please check it.


Thank you!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: timeout.rb.diff
Type: application/octet-stream
Size: 1053 bytes
Desc: not available
URL: <http://lists.macosforge.org/pipermail/macruby-devel/attachments/20100702/8e731e2b/attachment.obj>
-------------- next part --------------

On 2010/07/01, at 10:07, MacRuby wrote:

> #768: Timeout is broken. It seems MacRuby does not dispatch the  
> Thread.
> ---------------------------------- 
> +-----------------------------------------
> Reporter:  watson1978@?          |        Owner:   
> lsansonetti@?
>     Type:  defect                |       Status:  closed
> Priority:  blocker               |    Milestone:
> Component:  MacRuby               |   Resolution:  duplicate
> Keywords:                        |
> ---------------------------------- 
> +-----------------------------------------
> Changes (by martinlagardette@?):
>
>  * status:  new => closed
>  * resolution:  => duplicate
>
>
> Comment:
>
> This is a duplicate of a know bug: #176
>
> The problem is not that the thread is not dispatched. It is actually
> dispatched. But the dispatched thread is not the one that does the
> operation, it's a thread that sleep for whatever was passed to  
> timeout,
> and then sends "cancel" to the main thread. However, with the way  
> MacRuby
> implements threads (with pthread), it's not possible to cancel the  
> main
> thread without breaking everything :D.
>
> We're working on it, and waiting to find a solution.
>
> -- 
> Ticket URL: <http://www.macruby.org/trac/ticket/768#comment:1>
> MacRuby <http://macruby.org/>
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list