One solution is basicly to use a TThreadID kind of thing for all arguments and return types. The problems with this are:
1. if one OS has multiple threading backends with multiple types, what then? (ifdef isn't enough here) 2. who is going to check all platforms all usages of ThreadManager and fix them? Who is going to test this. Another solution is to use one "big-enough" type. But one day big-enough isn't going to be big enough and it still has problem #2. In any case it's going to hurt. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel