[Ironruby-core] Thread priority

Ivan Porto Carrero ivan at flanders.co.nz
Tue May 12 08:40:37 EDT 2009


You can just use the enum from ironruby
System::Threading::ThreadPriority.normal
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)

Emma Goldman <http://www.brainyquote.com/quotes/authors/e/emma_goldman.html>
- "If voting changed anything, they'd make it illegal."

On Tue, May 12, 2009 at 1:59 PM, Shay Friedman <lists at ruby-forum.com> wrote:

> Hi there,
>
> Ruby allows to set the thread priority using the priority= method:
> Thread.new do
>  Thread.current.priority = -1
>  ... blah blah blah ...
> end
>
> This is not available in IronRuby because priority maps to the
> System.Threading.Thread priority property which looks for the
> ThreadPriority enum. Is it going to change or is this the right behavior
> for IronRuby?
>
> Thanks,
> Shay.
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core at rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/ironruby-core/attachments/20090512/627f044a/attachment.html>


More information about the Ironruby-core mailing list