< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index |
Calling detach without ever having called run is a bit odd –
but it’s still a good idea to initialize this member – I’ll
commit a fix to SVN. Thanks. From:
resiprocate-devel-bounces@xxxxxxxxxxxxxxx
[mailto:resiprocate-devel-bounces@xxxxxxxxxxxxxxx] On Behalf Of Karlsson I think the Thread::ThreadIf() should be: ThreadIf::ThreadIf() : mId(0), mShutdown(false),
mShutdownMutex(), mThread(NULL)
Thanks 2008/1/26, Karlsson <boost.regex@xxxxxxxxx>: I saw the ThreadIf in reSIProcate 1.2.2, ThreadIf::ThreadIf() : mId(0), mShutdown(false),
mShutdownMutex() There do not initialize the mThread, so if in this
case will get application crash: #include <WinSock2.h> #include <rutil/threadif.hxx> #pragma comment(lib, "ws2_32.lib") class MyThread : public ThreadIf class Test void release() protected: private: MyThread mMyThread; int main() t.release(); return 0; |