[openamq-dev] Regarding amq_client_session_wait
Martin Sustrik
sustrik at imatix.com
Wed Dec 19 12:25:20 CET 2007
> The difference is that I can signal the semaphore from elsewhere in my
> code (or in the case of a named semaphore, from anywhere), and allow the
> thread to exit cleanly. This would also allow me to close the session
> and connection properly, and also clean up other resources.
Sure. This is a missing feature. However, allowing amq_client_session
handle to be used as a file descriptor in select/poll/epoll-like
functions is much better solution than simple semaphore object.
So, if you are interested in the functionality, go for it! Make a patch
that will either yield the appropriate file descriptor(s) to the client
or allow client to add its own file descriptors to amq_client_session's
pollset.
Martin
More information about the openamq-dev
mailing list