Fixed libwebsocket_context race condition.
authorOssama Othman <ossama.othman@intel.com>
Mon, 14 Oct 2013 22:55:47 +0000 (15:55 -0700)
committerOssama Othman <ossama.othman@intel.com>
Mon, 14 Oct 2013 22:55:47 +0000 (15:55 -0700)
commitf23a9f09792e473dd860ec32ea4117926f381ab1
tree3dd332f9d82b1d7b5f0fd7daf74b2e57e1aca810
parent04347ed0803aa2d2f06c0e6d6135fc044087cf22
Fixed libwebsocket_context race condition.

Tie the lifetime of the websocket_server to this thread, not the
main thread, so that we have no lifetime related race conditions
with respect to the underlying libwebsocket_context object.

Change-Id: Icb49f5fa21e7cea5fdc7f4f0023a551f40ef8b49
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
src/daemon.cpp
src/websocket_server.cpp