
30 Dec
2010
30 Dec
'10
3:24 p.m.
AMDG On 12/20/2010 8:27 AM, Viatcheslav.Sysoltsev@h-d-gmbh.de wrote:
does anybody have an idea why the following simple programm segfaults:
#include
void tf() { pthread_exit(NULL); }
int main() { boost::thread t(tf); t.join(); return 0; }
Don't use pthread_exit. It doesn't clean up the thread's stack properly. In Christ, Steven Watanabe