[prev in list] [next in list] [prev in thread] [next in thread] 

List:       uclinux-dev
Subject:    RE: [uClinux-dev] problem with restart of pthread
From:       "Falk Brettschneider" <falk.brettschneider () gmx ! de>
Date:       2005-11-18 8:12:34
Message-ID: 8681.1132301554 () www2 ! gmx ! net
[Download RAW message or body]

> > thread1 wakes up and resets&restarts thread2 by
> > calling pthread_cancel() and pthread_create().
>
> > thread1 calls pthread_cancel() to thread2, thread2's
> > exit-handler function is called 4ms later and calls
> > pthread_create() again.
>
> Now who creates? Thread 1 or the exit handler of Thread 2?
Uhm sorry, it's thread2 in the exit handler.

>
> Do you compile the application with _REENTRANT defined?
Yes, I do.

Cheers
F@lk

-- 
10 GB Mailbox, 100 FreeSMS/Monat http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic