I’m running into that mutex problem, where I need the same process to be able
to gain the same mutex lock at several places, and it’s locking itself out
after the first lock. I really need to be able to call the lock recursively.
Is there any way to get this functionality? Also, is there documentation
being maintained somewhere online so I can look this sort of thing up myself?
I’m running into that mutex problem, where I need the same process to be able
to gain the same mutex lock at several places, and it’s locking itself out
after the first lock. I really need to be able to call the lock recursively.
Is there any way to get this functionality? Also, is there documentation
being maintained somewhere online so I can look this sort of thing up myself?
Take a look at monitor.rb in the standard Ruby distribution. It allows
for recursive locks and almost follows Mutex’s API. It has embedded RDoc
documentation (in 1.8.0 version it contains even more information than
in 1.6.8).
Gennady.
Sean O’Dell wrote:
···
I’m running into that mutex problem, where I need the same process to be able
to gain the same mutex lock at several places, and it’s locking itself out
after the first lock. I really need to be able to call the lock recursively.
Is there any way to get this functionality? Also, is there documentation
being maintained somewhere online so I can look this sort of thing up myself?
Thanks a bunch! You know, I thought I couldn’t possibly be so dense as to
miss that link, so I poked around at Ruby Garden and the Ruby home page and
sure enough, I didn’t see it linked anywhere around there. Maybe someone
ought to put ruby-doc.org up on those pages, or make it more prominent?
Ruby-doc seems, to me, like one of (if not THE) the most fundamental sources
of information for Rubyists (advocacy and engine development aside).
I’m running into that mutex problem, where I need the same process to be
able to gain the same mutex lock at several places, and it’s locking
itself out after the first lock. I really need to be able to call the
lock recursively. Is there any way to get this functionality? Also, is
there documentation being maintained somewhere online so I can look this
sort of thing up myself?
Thanks a bunch! You know, I thought I couldn’t possibly be so dense as to
miss that link, so I poked around at Ruby Garden and the Ruby home page and
sure enough, I didn’t see it linked anywhere around there. Maybe someone
ought to put ruby-doc.org up on those pages, or make it more prominent?
Ruby-doc seems, to me, like one of (if not THE) the most fundamental sources
of information for Rubyists (advocacy and engine development aside).
There is a link on the main page of rubycentral.org (under
Community, on the left side; the link is “Ruby Documentation Project”),
as well as on rubygarden.org( under Ruby Links: “ruby-doc”).