Well, I can't approve this and I won't. But I would like to give me 5
cents for this approach. This approach seems to me bogus, as you are
dependent to sizeof (long) == sizeof (void *), which is a broken
attempt. It might be a way to use here instead intptr_t instead of
long type.
Nevertheless I admit that the pthread standard doesn't
disallow structure-typed pthread_t, so it might be still worth to
support this for gthread posix.
For windows there is a pthread implementation "winpthread" - hosted by
mingw-w64 project in experimental tree but it will be soon put into
active trunk. This one uses here for pthread_t an integer-scalar
handle instead of a structure, so issues about current implementation
in gthread are working fine.
Regards,
Kai