On 8 nov 2006, at 11:21, Jonas Maebe wrote:
Question about #2. Well.. this is a tough nut? I suspect it's
because of
various threading backends, but we need to handle those -1
properly if
nothing else but this implies going over by all used pthread
functions
and seeing all possible values (which might be OS specific)
A similar solution as TThreadID probably (unless all OSes use
signed results).
Actually, maybe this should not be the case. After all, how do you do
error checking in your program then? You'll have to add ifdef's
everywhere, while this is supposed to be platform-neutral code.
If e.g. on windows the result $ffffffff is not possible, we can
define that one as an error result (or, similarly, define -1 as an
error result and change the result type to cInt).
Jonas
_______________________________________________
fpc-devel maillist - [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel