sptk



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

Re: CThread & polite mode



BTW, one thing that still needs to be investigated, and decision made, is "non-polite" mode interruption policy. Right now it is "DEFERRED" for unix - which means thread stops after terminate() is called _and_ cancellation point is reached. Cancellation points are certain system calls and such, depends on pthreads and libc implementations.

Another option would be to use "ASYNCHRONOUS" cancellation - which means "die right away". I think we should look at winblows semantics of whatever related calls are, and do it same way.



Alexey Parshin wrote:

A+

2005/9/26, Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>:
It's in
did some changes to CThread.cpp (you'll see where ;0)
And added examples/thread_onexit.cpp - top of the file has some explanation
on how it should work.

Alexey Parshin wrote:

--
Ilya A. Volynets-Evenbakh
Total Knowledge. CTO
http://www.total-knowledge.com


List hosted by Total Knowledge

Authoright © Total Knowledge: 2005