diff options
author | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2013-05-31 21:47:25 +0000 |
---|---|---|
committer | kurtis.heimerl <kurtis.heimerl@19bc5d8c-e614-43d4-8b26-e1612bc8e597> | 2013-05-31 21:47:25 +0000 |
commit | 5a87247fdf2768a6408e0b87c210cebda85bc996 (patch) | |
tree | b538e7e42f8a7ba6c53e1b0bc22bfb359b1e0ef9 /CommonLibs/Threads.cpp | |
parent | bec41039bf2ec07c04a6e8b0b586b085ab9cd74c (diff) |
syncing commonlibs with Many thanks to Michael Iedema for these patches, makes config a lot better.
git-svn-id: http://wush.net/svn/range/software/public/openbts/trunk@5655 19bc5d8c-e614-43d4-8b26-e1612bc8e597
Diffstat (limited to 'CommonLibs/Threads.cpp')
-rw-r--r-- | CommonLibs/Threads.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/CommonLibs/Threads.cpp b/CommonLibs/Threads.cpp index 7cc8b92..de6520b 100644 --- a/CommonLibs/Threads.cpp +++ b/CommonLibs/Threads.cpp @@ -107,8 +107,9 @@ void Thread::start(void *(*task)(void*), void *arg) { assert(mThread==((pthread_t)0)); bool res; - res = pthread_attr_init(&mAttrib); - assert(!res); + // (pat) Moved initialization to constructor to avoid crash in destructor. + //res = pthread_attr_init(&mAttrib); + //assert(!res); res = pthread_attr_setstacksize(&mAttrib, mStackSize); assert(!res); res = pthread_create(&mThread, &mAttrib, task, arg); |