A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.lispworks.com/documentation/lw71/LW/html/lw-1046.htm below:

process-lock

Arguments

lock

A lock.

whostate

The status of the current Lisp process, before process-lock returns, that is, the status while the current process is waiting to timeout. This can be seen in the Process Browser.

timeout

A timeout interval, in seconds. If this is nil (the default), process-lock waits until lock can be locked by the current Lisp process. A process can lock a lock more than once.

Description

The function process-lock attempts to lock lock and returns t if successful, or nil if timed out.

If lock is already locked and its owner is the value of *current-process*, then the value of recursivep in the lock (see make-lock) controls what happens. If recursivep is true, then lock remains locked and an internal count is incremented (this is called recursive locking). Otherwise, an error is signaled.

The Lisp process sleeps until the lock can be locked or the timeout period specified by timeout expires.

result is t if lock was successfully locked, and nil otherwise.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4