[New-bugs-announce] [issue35455] Solaris thread_time doesn't work with current implementation

Jakub Kulik report at bugs.python.org
Mon Dec 10 09:32:21 EST 2018


New submission from Jakub Kulik <kulikjak at gmail.com>:

Implementation of time.thread_time() doesn't work on Solaris because clock_id CLOCK_THREAD_CPUTIME_ID is not known (it is defined, but clock_gettime returns EINVAL error). Solaris, however, has function gethrvtime() which can substitute this functionality.

I attached a possible patch which does work during tests and I further tested it with some basic scripts.

----------
components: Extension Modules
files: thread_time.diff
keywords: patch
messages: 331509
nosy: kulikjak
priority: normal
severity: normal
status: open
title: Solaris thread_time doesn't work with current implementation
versions: Python 3.7
Added file: https://bugs.python.org/file47984/thread_time.diff

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35455>
_______________________________________


More information about the New-bugs-announce mailing list