chickadee » srfi-18 » make-mutex

make-mutex #!optional nameprocedure

Returns a new mutex in the unlocked/not-abandoned state. The optional name is an arbitrary Scheme object which identifies the mutex (useful for debugging); it defaults to an unspecified value. The mutex's specific field is set to an unspecified value.

    (make-mutex)       ==>  ''an unlocked/not-abandoned mutex''
    (make-mutex 'foo)  ==>  ''an unlocked/not-abandoned mutex named'' foo