global:is_lock_set(ResourceID)

Ulf Wiger etxuwig@REDACTED
Tue Apr 1 15:00:43 CEST 2003


Is there a good reason why the function global:is_lock_set/1
is not exported?

I just copied the function from global.erl into my own
module. I have a need for global locks spanning multiple
operations, where each operation asserts that there is a
surrounding lock. Global fits the bill well, except for the
lack of is_lock_set/1 (which does exist as an internal
function).

I have not attached a patch. It seemed silly, since all
that's needed is adding is_lock_set/1 to the -export list.

/Uffe
-- 
Ulf Wiger, Senior Specialist,
   / / /   Architecture & Design of Carrier-Class Software
  / / /    Strategic Product & System Management
 / / /     Ericsson AB, Connectivity and Control Nodes




More information about the erlang-questions mailing list