Wait for threads to close properly
This commit is contained in:
parent
a2806bc83a
commit
1deb06a92f
1 changed files with 6 additions and 2 deletions
|
|
@ -146,8 +146,12 @@
|
|||
|
||||
(defun finalize ()
|
||||
"Finalize the jobs module."
|
||||
(format t "Finalize Job system~%")
|
||||
(update 0.0)
|
||||
(loop-with-progress "Finalize Job system"
|
||||
while (> (length *thread-list*) 0)
|
||||
do (progn
|
||||
(update 0.0)
|
||||
(sleep 0.1)
|
||||
progress-step))
|
||||
(assert (eq (length *thread-list*) 0))
|
||||
(loop as job = (dequeue *job-queue*)
|
||||
while job
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue