From: William E. Kempf (williamkempf_at_[hidden])
Date: 2002-08-08 16:40:18


----- Original Message -----
From: "Iain K.Hanson" <iain.hanson_at_[hidden]>
> William E. Kempf wrote:
>
> >Not difficult, just not consistent. The main thread *IS* a thread.
> >Anything I can do to any other thread I should be able to do to the main
> >thread. With a thread_terminate() this means I should be able to call it
> on
> >the main thread. I can envision the standard being changed to make this
> >work, but I can't really do it from a library level.
>
> Then could this not be simulated by installing pthread_exit as the
terminate
> handler?

I don't think portably. POSIX (or other threading system documentation)
doesn't mention C++ and C++ doesn't mention threads, so how these two
interact in this specific circumstance is probably not something that you'll
find consistent between implementations.

Bill Kempf