[705] in Pthreads mailing list archive
threads not starting?
daemon@ATHENA.MIT.EDU (Michael D. Figley)
Sat Aug 16 17:36:39 1997
Errors-To: <figley@concentric.net>
Date: Sat, 16 Aug 1997 16:09:53 -0500
From: "Michael D. Figley" <figley@concentric.net>
To: pthreads@MIT.EDU
I've compiled and installed pthreads-1_60_beta6 on my
Linux box (Debian 2.0.27). Then linked with my application.
The threads that get created don't seem to "start".
The following code falls through to pause() without
ever "executing" the threads. - ???
########
if (pthread_create(&thread, NULL, fl_main, (void*) &args)){
perror("pthread_create");
}
if (gui && (gui_cnt<1)) {
gui_cnt++;
if (pthread_create(&thread, NULL, gui_main, (void*) &args)){
perror("pthread_create");
}
}
pause();
########
MDF