Skip to content

Commit

Permalink
Mark dispatch important by default
Browse files Browse the repository at this point in the history
  • Loading branch information
borodust committed Jan 10, 2017
1 parent 5248df0 commit 10123b1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions engine/concurrency/execution.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

(defmethod execute ((this discarding-executor) (task function) &key
(priority :medium)
important-p)
(important-p t))
(if important-p
(put-into (task-queue-of this) task priority)
(try-put-replacing (task-queue-of this) task priority)))
Expand Down Expand Up @@ -86,7 +86,7 @@

(defmethod execute ((this single-threaded-executor) (task function) &key
(priority :medium)
important-p)
(important-p t))
(with-slots (executor) this
(execute executor task :priority priority :important-p important-p)))

Expand Down
2 changes: 1 addition & 1 deletion engine/thread-bound-system.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(:method (context system) (declare (ignore context system))))


(defmethod dispatch ((this thread-bound-system) fn &key (priority :medium) important-p)
(defmethod dispatch ((this thread-bound-system) fn &key (priority :medium) (important-p t))
(unless (call-next-method)
(flet ((invoker ()
(log-errors
Expand Down
2 changes: 1 addition & 1 deletion scene/scene.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

(defun process-pass-chain-flow (chain root-node)
(flet ((make-processor (pass)
(-> (pass) ()
(-> (pass :important-p nil) ()
(run-scene-pass pass root-node))))
(mapcar #'make-processor (passes-of chain))))

Expand Down

0 comments on commit 10123b1

Please sign in to comment.