Changeset 40 for branches/home/psmith/restructure/src/compat
- Timestamp:
- 01/17/07 05:06:13 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified branches/home/psmith/restructure/src/compat/concurrent-queue.lisp ¶
r39 r40 52 52 nil)) 53 53 54 55 (defmethod take ((queue concurrent-queue) )54 ;Do an (optionally blocking) remove of the element at the head of this queue 55 (defmethod take ((queue concurrent-queue) &key (blocking-call t)) 56 56 (sb-thread:with-mutex ((buffer-lock queue)) 57 57 ;if its there, pop it 58 58 (let ((ret (pop-elt (buffer queue) "1sttry"))) 59 (if ret59 (if (or ret (not blocking-call)) 60 60 ret 61 61 (progn … … 63 63 (pop-elt (buffer queue) "2ndtry")))))) 64 64 65 65 ;Append the element to the tail of this queue 66 66 (defmethod add ((queue concurrent-queue) elt) 67 67 (sb-thread:with-mutex ((buffer-lock queue))
Note: See TracChangeset
for help on using the changeset viewer.