diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-01-30 22:54:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-01-30 22:54:38 +0100 |
| commit | ea6b2dae46caa1da829fbf499e83cd6ae3b3773a (patch) | |
| tree | f8f978b762fad664a4c8d5fdc11d8c7145ee09a8 /src/lib/encode_server.h | |
| parent | a1546fb6c4e59621d99271b8ca996e96a574f7b3 (diff) | |
Various thread cleanups.
Diffstat (limited to 'src/lib/encode_server.h')
| -rw-r--r-- | src/lib/encode_server.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/encode_server.h b/src/lib/encode_server.h index 14dc77398..40e84ad60 100644 --- a/src/lib/encode_server.h +++ b/src/lib/encode_server.h @@ -54,7 +54,7 @@ private: void broadcast_thread (); void broadcast_received (); - std::vector<boost::thread *> _worker_threads; + std::vector<boost::thread> _worker_threads; std::list<boost::shared_ptr<Socket> > _queue; boost::condition _full_condition; boost::condition _empty_condition; @@ -64,12 +64,11 @@ private: struct Broadcast { Broadcast () - : thread (0) - , socket (0) + : socket (0) {} boost::mutex mutex; - boost::thread* thread; + boost::thread thread; boost::asio::ip::udp::socket* socket; char buffer[64]; boost::asio::ip::udp::endpoint send_endpoint; |
