T
Tim Keith
I have a collection of 10 named items from which I would like
to lock 1 to 10 items in a single request. Multiple processes
may request "tokens" from the collection. At any time 1 to 10
items of the collection can be assigned to unique process ids
during which time a lock is held on the token.
Each item must have a specific name, lock requests are made
for a count of items. When items are unlocked, the unlock
request can use either a handle returned by the original
lock request, or in a special case - unlocked by a request
using its ordinal value(1 - 10).
Each of the ten items will be tied to a process id (and possibly
other arbitrary data). When the process terminates the token
can be unlocked so that other processes may request a lock for
the token.
No two requests should be assigned the same token when multiple
requests for tokens occur simulaneously.
Is there a CPAN module that would provides this functionality?
to lock 1 to 10 items in a single request. Multiple processes
may request "tokens" from the collection. At any time 1 to 10
items of the collection can be assigned to unique process ids
during which time a lock is held on the token.
Each item must have a specific name, lock requests are made
for a count of items. When items are unlocked, the unlock
request can use either a handle returned by the original
lock request, or in a special case - unlocked by a request
using its ordinal value(1 - 10).
Each of the ten items will be tied to a process id (and possibly
other arbitrary data). When the process terminates the token
can be unlocked so that other processes may request a lock for
the token.
No two requests should be assigned the same token when multiple
requests for tokens occur simulaneously.
Is there a CPAN module that would provides this functionality?