http://bugs.winehq.org/show_bug.cgi?id=26785
Summary: SIV incorrectly reports the same CPU time usage for all it's threads Product: Wine Version: 1.3.17 Platform: x86 URL: http://rh-software.com/ OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: ntdll AssignedTo: wine-bugs@winehq.org ReportedBy: ray@pobox.co.uk
Created an attachment (id=34125) --> (http://bugs.winehq.org/attachment.cgi?id=34125) Screen Image showing the same CPU time for all threads
I thought this was a bug in SIV and have been trying to fix it, but it transpires that GetThreadTimes() is implemented by Wine using the times() function which returns the process rather than the thread CPU times.
The code is line 942 in ntdll/threads.c and is times(&time_buf);
I would like to try and generate a patch to fix this, but I have thus far failed to find a portable *nix function to use. Please can someone point me in the right direction?