PDA

View Full Version : g_thread join: what happens if the thread has already quit?



night_fox
February 11th, 2010, 10:08 AM
Hi.

supposing i call g_thread_join on a thread. What is supposed to happen if the thread has already quit?

My program segfaults when it exits about 1 in 4 times, but when run in gdb it never segfaults. Valgrind crashes during creation of a thread. Is debugging this going to be hard?

night_fox
February 11th, 2010, 10:23 AM
anyway it doesn't matter. Not sure what i did to it but now i can't get it to segfault ever.