Changeset 512


Ignore:
Timestamp:
Feb 9, 2004, 8:22:31 AM (21 years ago)
Author:
Gary Byers
Message:

Aargh.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ccl/level-1/linux-files.lisp

    r475 r512  
    912912        (append-dll-node request (shared-resource-requestors resource)))
    913913      (wait-on-semaphore (shared-resource-request-signal request))
    914       #+debug
    915       (assert (eq current (shared-resource-current-owner request)))
     914      (assert (eq current (shared-resource-current-owner resource)))
    916915      (when verbose
    917916        (format t "~%~%;;;~%;;; ~a is now owned by ~a~%;;;~%~%"
     
    928927             (secondary (shared-resource-current-owner r)))
    929928        (unless (setq not-any-owner
    930                       (or (eq current secondary)
    931                           (and (null secondary)
    932                                (eq current primary))))
    933           (when secondary
     929                      (not (or (eq current secondary)
     930                               (and (null secondary)
     931                                    (eq current primary)))))
     932          (when (eq current secondary)
    934933            (setf (shared-resource-current-owner r) nil)
    935934            (signal-semaphore (shared-resource-primary-owner-notify r))))))
     
    959958          (when request
    960959            (remove-dll-node request)
     960            (setf (shared-resource-current-owner r)
     961                  (shared-resource-request-process request))
    961962            (signal-semaphore (shared-resource-request-signal request))))))
    962963    (when request
    963964      (wait-on-semaphore (shared-resource-primary-owner-notify r))
    964       (format t "~&;;;~%;;;control of ~a restored to ~a~%;;;~&"
     965      (format t "~%;;;~%;;;control of ~a restored to ~a~%;;;~&"
    965966              (shared-resource-name r)
    966967              *current-process*))))
Note: See TracChangeset for help on using the changeset viewer.