problem with pthread_kill()



Hello,

I have one problem with the pthread_kill() function.

When I call it my program crash!

I use this function like this :

---------
static int	num_thread;
pthread_t 	new_thread;


int main(int argc, char* argv[])
{
...

    // Just for a test
    num_thread; = pthread_create(&new_thread, NULL,
TestTpsReaction, NULL);
    pthread_kill(new_thread, SIGINT);

    gdk_threads_enter();
    gtk_main();
    gdk_threads_leave();
    return 0;
}

-------

Why my application crash???
Have you an idea?

Thanks.



=====
oO0 A + Ju 0Oo

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]