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 nameName of the mutex to lock
INTEGER maxconcurrentMax nr. of concurrent lock-keepers during the requested lock
DATETIME waituntilWait until this time to lock.
Return value
OBJECTSemaphore-lock object (or DEFAULT OBJECT if not able to lock in time)