Why doesn't threading.join() return a value?

Alain Ketterlin alain at dpt-info.u-strasbg.fr
Sat Sep 3 11:00:22 CEST 2011


Alain Ketterlin <alain at dpt-info.u-strasbg.fr> writes:

>> Passing a void* is not equivalent to passing anything, not even in C.
>> Moreover, specific values are still reserved, like PTHREAD_CANCELLED.
>
> Thread cancellation is program logic (pthread_cancel), it doesn't mean
> you thread crashed, it means your program decided to cancel the thread.
> If you still care about the return value after having called
> pthread_cancel(), 

Sotry, forgot to end this sentence... What I mean is:

If you still care about the return value after having called
pthread_cancel(), your program logic is unnecessarily complex, and
you should find some other way to handle this case.

-- Alain.



More information about the Python-list mailing list