Message254846
While trying to port Python over to a new platform (CloudABI), I noticed a couple of compiler errors in PyThread_create_key(), PyThread_delete_key(), PyThread_delete_key_value() and PyThread_set_key_value() caused by fact that pthread_key_t is converted to an integer (and vice versa)
POSIX doesn't seem to require that pthread_key_t is an integer or any other arithmetic type:
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_types.h.html
Old revisions of the standard did require pthread_t to be an arithmetic type, but this requirement was dropped later on.
In my opinion we should strongly consider changing the API, so that we can treat the key created by pthread_key_create() or returned by TlsAlloc() as an opaque type. |
|
Date |
User |
Action |
Args |
2015-11-18 15:50:16 | EdSchouten | set | recipients:
+ EdSchouten |
2015-11-18 15:50:16 | EdSchouten | set | messageid: <1447861816.88.0.632584646231.issue25658@psf.upfronthosting.co.za> |
2015-11-18 15:50:16 | EdSchouten | link | issue25658 messages |
2015-11-18 15:50:16 | EdSchouten | create | |
|