On 20.04.10 01:41, Stefan Sayer wrote:
Hello,
Ondrej Martinek wrote:
* There is no way for a thread (AmThread) to wait for its "_stopped"
flag. At least, the flag should be "protected" rather than
it shouldn't wait for _stopped; at least for those threads that are in
the thread watcher (garbage collector). this flag tells the
ThreadWatcher that the thread can be destroyed (which arguably should
be done only after join).
_stopped is set when the thread has exited the run() function. That's
it! Waiting for it is not the right thing to do. However, it might be
usefull to have something like a "stop_requested" flag in AmThread. I
have seen many children of AmThread where such a similar flag has been
introduced.
-Raphael.
Stefan
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev