Hi all,

I came across a discussion about on_sendable[1] only being called once.
This is what I had observed creating my own application.  Usually, the
first time on_sendable is called, my application doesn't have any
messages to send (there is a data structure in RAM, populated from
another thread) to the on_sendable method just returns without doing
anything and the container never calls it again.

To work around that, I just let the other thread call the
proton::sender::send() method directly whenever it has a message.  Is
that a valid solution, or should the proton::sender::send() method only
be called in the same thread as the container?

Could anybody annotate the API docs to indicate which methods are
considered thread safe?

If it is not wise to call proton::sender::send() from other threads, how
do I tell the container thread to call on_sendable() from time to time
to check if there are new messages to be sent?

Regards,

Daniel



1.
http://qpid.2158936.n2.nabble.com/Proton-Python-on-sendable-behavior-td7652138.html

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

Reply via email to