Skip to content

Commit

Permalink
Returned ensure thread is running.
Browse files Browse the repository at this point in the history
  • Loading branch information
svetlyak40wt committed Jan 15, 2025
1 parent 3df36a7 commit da61abf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mbox/message-box.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,7 @@ It will be apply'ed with the rest of the args when the message was 'popped' from
(bt2:with-lock-held (withreply-lock)
(log:trace "~a: pushing item to queue: ~a" (name msgbox) push-item)
(queue:pushq queue push-item)
;; (ensure-thread-is-running msgbox)
)
(ensure-thread-is-running msgbox))

;; It is important to leave lock withreply-lock
;; before we will wait for result. Otherwisee handler-fun
Expand All @@ -253,7 +252,7 @@ It will be apply'ed with the rest of the args when the message was 'popped' from
(bt2:with-lock-held (withreply-lock)
(log:trace "~a: pushing item to queue: ~a" (name msgbox) push-item)
(queue:pushq queue push-item)
;; (ensure-thread-is-running msgbox)
(ensure-thread-is-running msgbox)

(log:trace "~a: withreply: waiting for arrival of result..." (name msgbox))
(bt2:condition-wait withreply-cvar withreply-lock))))
Expand Down

0 comments on commit da61abf

Please # to comment.