Changeset 7692
- Timestamp:
- Nov 20, 2007, 3:06:09 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/working-0710/ccl/level-1/l1-processes.lisp
r7330 r7692 423 423 (defun grab-lock (lock &optional flag) 424 424 "Wait until a given lock can be obtained, then obtain it." 425 (%lock-recursive-lock (recursive-lock-ptr lock)flag))425 (%lock-recursive-lock-object lock flag)) 426 426 427 427 (defun release-lock (lock) 428 428 "Relinquish ownership of a given lock." 429 (%unlock-recursive-lock (recursive-lock-ptr lock)))429 (%unlock-recursive-lock-object lock)) 430 430 431 431 (defun try-lock (lock &optional flag) 432 432 "Obtain the given lock, but only if it is not necessary to wait for it." 433 (%try-recursive-lock (recursive-lock-ptr lock)flag))433 (%try-recursive-lock-object lock flag)) 434 434 435 435 (defun lock-acquisition-status (thing) … … 676 676 (defaultp default) 677 677 (t (error "Failed to join ~s" p))))) 678 679 (defmethod process-locks-held ((p process)) 680 (copy-list (symbol-value-in-process '*locks-held* p))) 681 682 (defmethod process-locks-pending ((p process)) 683 (copy-list (symbol-value-in-process '*locks-pending* p)))
Note: See TracChangeset
for help on using the changeset viewer.