LocalLockManager::TryLockLocalSemaphore (open)

Try to lock a process-local semaphore by name

Syntax

LOADLIB "wh::ipc.whlib";

OBJECT FUNCTION TryLockLocalSemaphore(STRING name, INTEGER maxconcurrent, DATETIME waituntil)

Parameters

STRING name

Name of the mutex to lock

INTEGER maxconcurrent

Max nr. of concurrent lock-keepers during the requested lock

DATETIME waituntil

Wait until this time to lock.

Return value

OBJECT

Semaphore-lock object (or DEFAULT OBJECT if not able to lock in time)