Skip to content

Commit

Permalink
In queue-for-event-process, never funcall the thunk immediately.
Browse files Browse the repository at this point in the history
Always queue an event so that the execution of the thunk is deferred
until the next iteration of the event loop.
  • Loading branch information
xrme committed Jul 9, 2015
1 parent bdef55e commit e11ccda
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mac-ui/event-process.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
(defun queue-for-event-process (f)
"Queue the zero-argument function F for asynchronous execution in
the event process."
(if (eq *current-process* *initial-process*)
(funcall f)
(%interrupt-event-process f nil)))
(%interrupt-event-process f nil))

(defun call-in-event-process (f)
"Invoke the zero-argument function F in the event process, wait for
Expand Down

0 comments on commit e11ccda

Please sign in to comment.