Macro
mp
without-interrupts &rest body => result
The forms to execute while interrupts are queued.
The result of executing body.
mp:without-interrupts within the function which sets them.
(defstruct elapsed-time
seconds
milliseconds)
(defun update-elapsed-time-atomically
(elapsed-time seconds milliseconds)
(mp:without-interrupts
(setf (elapsed-time-seconds elapsed-time) seconds
(elapsed-time-milliseconds elapsed-time)
milliseconds)))