GetThreadTimes

Ryan Cumming ryan at completely.kicks-ass.org
Thu Nov 21 22:57:03 CST 2002


Attached is an (almost) full implementation of GetThreadTimes.

The wineserver keeps track of a thread's creation and exit time to a 1 second 
resolution. This information is passed back to the client through the 
get_thread_info request. Although MSDN describes the exit time as undefined 
for running threads, I initialise it to zero to match Windows XP.

The thread's user and kernel times are calculated on the client using 
times(2), to a 100ns resolution. Unfortunately, there seems to be no portable 
way to get the times(2) of another thread, so my implementation prints a 
FIXME in that case and returns FALSE.

-Ryan

ChangeLog:
* Mostly implement GetThreadTimes

-------------- next part --------------
A non-text attachment was scrubbed...
Name: getthreadtimes.diff
Type: text/x-diff
Size: 3597 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20021121/3cd8b909/getthreadtimes.bin


More information about the wine-patches mailing list