refactor: SocketMultiplexer, do not create nested pointer in new Thread call
This commit is contained in:
parent
5aa9b1bfd4
commit
e42d3b45b6
1 changed files with 2 additions and 1 deletions
|
|
@ -36,7 +36,8 @@ SocketMultiplexer::SocketMultiplexer()
|
|||
m_cursorMark = reinterpret_cast<ISocketMultiplexerJob *>(this);
|
||||
|
||||
// start thread
|
||||
m_thread = new Thread(new TMethodJob<SocketMultiplexer>(this, &SocketMultiplexer::serviceThread));
|
||||
auto tMethodJob = new TMethodJob<SocketMultiplexer>(this, &SocketMultiplexer::serviceThread);
|
||||
m_thread = new Thread(tMethodJob);
|
||||
}
|
||||
|
||||
SocketMultiplexer::~SocketMultiplexer()
|
||||
|
|
|
|||
Loading…
Reference in a new issue