Message342292
I dislike adding a function which always return 0 when the feature is not supported:
unsigned long
PyThread_get_thread_native_id(void)
{
...
#if ...
...
#else
unsigned long native_id;
native_id = 0;
#endif
return (unsigned long) native_id;
}
I would prefer to not define the function if it's not available, so the attribute would be missing.
With the commited change, how can I know if native thread identifier is supported or not? |
|
Date |
User |
Action |
Args |
2019-05-13 09:13:20 | vstinner | set | recipients:
+ vstinner, pitrou, jaketesler |
2019-05-13 09:13:20 | vstinner | set | messageid: <1557738800.81.0.220714109622.issue36084@roundup.psfhosted.org> |
2019-05-13 09:13:20 | vstinner | link | issue36084 messages |
2019-05-13 09:13:20 | vstinner | create | |
|