Author vstinner
Recipients jaketesler, pitrou, vstinner
Date 2019-05-13.09:13:20
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557738800.81.0.220714109622.issue36084@roundup.psfhosted.org>
In-reply-to
Content
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?
History
Date User Action Args
2019-05-13 09:13:20vstinnersetrecipients: + vstinner, pitrou, jaketesler
2019-05-13 09:13:20vstinnersetmessageid: <1557738800.81.0.220714109622.issue36084@roundup.psfhosted.org>
2019-05-13 09:13:20vstinnerlinkissue36084 messages
2019-05-13 09:13:20vstinnercreate