CodePlex Home
Register
|
Sign In
|
CodePlex Home
Home
Downloads
Issue Tracker
Source Code
People
License
Close
RSS
All Project Updates
Issue Tracker
Releases
Reviews
Source Code
Wiki & Documentation
RSS
Basic View
|
Advanced View
|
Create New Item
Item
1
of
1
Previous
|
Next
2
votes
closed
tracking: Shell stdlib
Description
Uses Thread.exclusive, which is defined in the thread standard library (as opposed to the Thread builtin class), which needs to be ported.
File Attachments
No files are attached
Closed
Dec 18 2009 at 10:07 PM
by
jredville
manual tests pass. need to work on specs
Comments
most recent at top
(
show oldest at top
)
sborde
wrote
Oct 20 2009 at 10:49 PM
The Ruby implementation in the previous comment is not safe and assumes green threading. With native threads in IronRuby, if there is a context-switch after the statement "old_critical = Thread.critical", the method can misbehave. This might need an implementation in C# or might need some different technique.
jarnaldich
wrote
Oct 7 2009 at 9:07 AM
This issue also breaks the distributed ruby library.
For me it was enough to add this before my code:
class Thread
def self.exclusive
old_critical = Thread.critical
Thread.critical=true
return yield
ensure
Thread.critical=old_critical
end
end
It's the same code that the standard ruby library uses...
Greets,
Joan.
jimmysch
wrote
Jun 10 2009 at 11:32 PM
Missing implementation for this, but it should be in the standard library as Ruby code: http://rails.noobkit.com/show/ruby/ruby/standard-library/thread/exclusive.html.
Need to get this in, as well as other stdlibs that have Ruby code that isn't included.
Sign in to add a comment
Comment:
Work Item Details
Item #
1486
Status
Closed
Type
Issue
Impact
Medium
Release
0.9.2
Assigned To
Unassigned
Component
Library
Reported On
May 29 2009 at 11:11 PM
Reported By
jredville
Updated On
Dec 18 2009 at 10:07 PM
Updated By
jredville
Closed On
Dec 18 2009 at 10:07 PM
Closed By
jredville
Wiki Link
[workitem:1486]
Updating...
© 2006-2010 Microsoft
|
About CodePlex
|
Privacy Statement
|
Terms of Use
|
Code of Conduct
|
Advertise With Us
|
Version 2010.1.12.16187