franz1981 commented on pull request #1349:
URL: https://github.com/apache/qpid-dispatch/pull/1349#issuecomment-904658440


   @kgiusti Unrelated to this change, but it would be nice to have some flag 
that record the state of router thread (waiting/parked/sleeping or not) and 
save signaling to happen if core is already processing something.
   
   The logic would be:
   
   WORKER THREAD:
   
       signal = false
       lock 
       add action
       if (core is sleeping) 
           signal = true
       unlock
       if signal
           signal()
   
   Core thread side we just need to mark core->sleeping right before going to 
sleep and it's done.
   This is going to save many signaling (and talking with kernel just to 
inspect the state of the core thread, that's something we already know in 
user-space!).
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to