Fixed libwebsocket_context race condition. 83/10983/3
authorOssama Othman <ossama.othman@intel.com>
Mon, 14 Oct 2013 22:55:47 +0000 (15:55 -0700)
committerOssama Othman <ossama.othman@intel.com>
Wed, 16 Oct 2013 21:57:29 +0000 (14:57 -0700)
commit30ca89e7537b5945b432c3a1553a5faba96d0e03
tree5ffd81b093defff8c9a6af6fa58f5f6d5c0ce145
parente8c7bd688f5494440965316b20642b2b742f4f03
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