summaryrefslogtreecommitdiff
path: root/src/lib/encode_server.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-07-23 22:53:43 +0200
committerCarl Hetherington <cth@carlh.net>2020-07-23 22:53:56 +0200
commit73ebb92e9df01ba7afb97121b6e2cef6ca13a18e (patch)
tree118963fcf42c27cceaa0602d5870781c8a22d2d8 /src/lib/encode_server.h
parent2f2df8e53124bee8bc8312f37bc8608dc46085d6 (diff)
Use thread_group for improved exception safety (#1785).
Diffstat (limited to 'src/lib/encode_server.h')
-rw-r--r--src/lib/encode_server.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/encode_server.h b/src/lib/encode_server.h
index 91e007503..a43cea7ef 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;
+ boost::thread_group _worker_threads;
std::list<boost::shared_ptr<Socket> > _queue;
boost::condition _full_condition;
boost::condition _empty_condition;