Changeset 12794
- Timestamp:
- Sep 8, 2009, 5:55:52 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/source/lib/misc.lisp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lib/misc.lisp
r12732 r12794 1044 1044 (lock-name lock) 1045 1045 (%ptr-to-int (%svref lock target::lock._value-cell))))) 1046 1047 (defun watch (&optional thing) 1048 (if thing 1049 ;; typecheck thing? 1050 (%watch thing) 1051 (let (result) 1052 (%map-areas #'(lambda (x) (push x result)) area-watched area-watched) 1053 result))) 1054 1055 (defun unwatch (thing) 1056 (%map-areas #'(lambda (x) 1057 (when (eq x thing) 1058 ;; This is a rather questionable thing to do, 1059 ;; since we'll be unlinking an area from the area 1060 ;; list while %map-areas iterates over it, but I 1061 ;; think we'll get away with it. 1062 (%unwatch thing) 1063 (return-from unwatch))) 1064 area-watched area-watched)) 1065
Note:
See TracChangeset
for help on using the changeset viewer.
