diff options
| author | 2019-10-05 21:10:12 -0400 | |
|---|---|---|
| committer | 2019-10-05 21:10:12 -0400 | |
| commit | 78fb19eb26c8814cc83c649a252b7f47bdf649a0 (patch) | |
| tree | e8f38f35e404b37d4683604cb2a826ff3f4d2f1d /src/lib/net/SocketMultiplexer.h | |
| parent | 226b07c35afedc28ad1a769d6bf539e6cab320d4 (diff) | |
| parent | dff8b887edf10407f22aaab9d147948cd5491f0a (diff) | |
Update upstream source from tag 'upstream/2.3.2+dfsg'
Update to upstream version '2.3.2+dfsg'
with Debian dir da6cb58f0203c792df99a475344204697ce64812
Diffstat (limited to 'src/lib/net/SocketMultiplexer.h')
| -rw-r--r-- | src/lib/net/SocketMultiplexer.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/net/SocketMultiplexer.h b/src/lib/net/SocketMultiplexer.h index 4aa39fc..9891558 100644 --- a/src/lib/net/SocketMultiplexer.h +++ b/src/lib/net/SocketMultiplexer.h @@ -21,6 +21,7 @@ #include "arch/IArchNetwork.h" #include "common/stdlist.h" #include "common/stdmap.h" +#include <memory> template <class T> class CondVar; @@ -41,7 +42,7 @@ public: //! @name manipulators //@{ - void addSocket(ISocket*, ISocketMultiplexerJob*); + void addSocket(ISocket*, std::unique_ptr<ISocketMultiplexerJob>&& job); void removeSocket(ISocket*); @@ -58,7 +59,7 @@ public: private: // list of jobs. we use a list so we can safely iterate over it // while other threads modify it. - typedef std::list<ISocketMultiplexerJob*> SocketJobs; + using SocketJobs = std::list<std::unique_ptr<ISocketMultiplexerJob>>; typedef SocketJobs::iterator JobCursor; typedef std::map<ISocket*, JobCursor> SocketJobMap; @@ -106,6 +107,4 @@ private: SocketJobs m_socketJobs; SocketJobMap m_socketJobMap; - ISocketMultiplexerJob* - m_cursorMark; }; |
