Changeset 7901
- Timestamp:
- Dec 12, 2007, 12:25:10 PM (17 years ago)
- File:
-
- 1 edited
-
branches/working-0711/ccl/level-0/l0-hash.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/working-0711/ccl/level-0/l0-hash.lisp
r7897 r7901 1718 1718 (nhash.read-only hash)) 1719 1719 1720 (defun hash-table-owner (hash) 1721 (unless (hash-table-p hash) 1722 (report-bad-arg hash 'hash-table)) 1723 (nhash.owner hash)) 1724 1725 (defun claim-hash-table (hash &optional steal) 1726 (unless (hash-table-p hash) 1727 (report-bad-arg hash 'hash-table)) 1728 (let* ((owner (nhash.owner hash))) 1729 (if owner 1730 (or (eq owner *current-process*) 1731 (when steal 1732 (setf (nhash.owner hash) *current-process*))) 1733 (progn 1734 (write-lock-hash-table hash) 1735 (setf (nhash.exclusion-lock hash) nil 1736 (nhash.owner hash) *current-process*) 1737 t)))) 1738 1739 1740 1720 1741 (defun enumerate-hash-keys (hash out) 1721 1742 (unless (hash-table-p hash)
Note:
See TracChangeset
for help on using the changeset viewer.
