- Timestamp:
- Oct 12, 2007, 2:24:25 AM (17 years ago)
- File:
-
- 1 edited
-
branches/working-0710/ccl/level-0/l0-hash.lisp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/working-0710/ccl/level-0/l0-hash.lisp
r6918 r7392 569 569 570 570 571 571 (defun lock-hash-table (hash) 572 (let* ((lock (nhash.exclusion-lock hash))) 573 (if lock 574 (write-lock-rwlock lock) 575 (progn (unless (eq (nhash.owner hash) *current-process*) 576 (allowing-deferred-gc (error "Not owner of hash table ~s" hash))))))) 577 578 (defun unlock-hash-table (hash) 579 (let* ((lock (nhash.exclusion-lock hash))) 580 (if lock 581 (unlock-rwlock lock)))) 572 582 573 583 … … 654 664 655 665 656 (defun lock-hash-table (hash) 657 (let* ((lock (nhash.exclusion-lock hash))) 658 (if lock 659 (write-lock-rwlock lock) 660 (progn (unless (eq (nhash.owner hash) *current-process*) 661 (error "Not owner of hash table ~s" hash)))))) 662 663 (defun unlock-hash-table (hash) 664 (let* ((lock (nhash.exclusion-lock hash))) 665 (if lock 666 (unlock-rwlock lock)))) 666 667 667 668 668 (defun gethash (key hash &optional default)
Note:
See TracChangeset
for help on using the changeset viewer.
