]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
Fix FS-3904 use a message to shutdown the module
authorJosh Perry <josh@6bit.com>
Thu, 23 Feb 2012 01:19:07 +0000 (18:19 -0700)
committerJeff Lenk <jeff@jefflenk.com>
Thu, 23 Feb 2012 20:40:59 +0000 (14:40 -0600)
commit13ac8baef24bb048479275a25af30b9a73c12abd
treee09eab1aec4d34f58f5aa08d708eb0057deb385b
parent24afb8aaaf38c8e78c40e5e4ba419ffa08d4bd3a
Fix FS-3904 use a message to shutdown the module

For some reason the running flag being set on the thread initiating the
shutdown did not propogate to the run loop thread. I couldn't find any
memory barrier functions in APR or the FS API so I am using 0MQ to send
a termination request message to the run loop thread.
src/mod/event_handlers/mod_event_zmq/mod_event_zmq.cpp
src/mod/event_handlers/mod_event_zmq/mod_event_zmq.h [new file with mode: 0644]