[OT] search for implementation of GetThreadTimes
Vincent Torri
torri at math.u-strasbg.fr
Sun Jun 13 12:23:27 CDT 2004
On Sun, 13 Jun 2004, Joris Huizer wrote:
> Vincent Torri wrote:
> > Hello,
> >
> > I would like to ask a question which is not related to wine, but i think
> > that wine developpers could answer it, or maybe help me a bit.
> >
> > I am working on the linux port of a win32 program. This one uses two
> > functions about win32 threads:
> > GetCurrentThread
> > GetThreadTimes
> >
> > I have found in nt2unix an implementation of the first one. But not for
> > the latter.
> >
> > I have seen that 2 years ago, GetThreadTimes have been implemented in
> > wine/scheduler/, but the files of this directory have been removed.
> >
> > So, my questions are : have these functions been implemented in wine ? If
> > yes, in which file ? If no, does someone know where i can find an
> > implementation of GetThreadTimes ?
> >
> > Thank you very much !
> >
> > Vincent TORRI
> >
>
> I just did a quick search in the wine source (20040505) using,
> grep -r GetThreadTimes .
> It came up with an interesting file, dlls/kernel/thread.c
>
> I don't know how easy it'd be to use the wine implementation of
> GetThreadTimes but there is a function like this (around line 523)
>
> /**********************************************************************
> * GetThreadTimes [KERNEL32.@] Obtains timing information.
> *
> * RETURNS
> * Success: TRUE
> * Failure: FALSE
> */
> BOOL WINAPI GetThreadTimes(
> HANDLE thread, /* [in] Specifies the thread of interest */
> LPFILETIME creationtime, /* [out] When the thread was created */
> LPFILETIME exittime, /* [out] When the thread was destroyed */
> LPFILETIME kerneltime, /* [out] Time thread spent in kernel mode */
> LPFILETIME usertime) /* [out] Time thread spent in user mode */
> ...
thanks a lot ! that's exactly what i want !
>
> HTH,
it will help, definitely.
Our code is also GPL, so i will make a small file with the licence and the
two functions that we need, saying that the code comes from wine. Is this
sufficient ?
Thank you very much again !
Vincent TORRI
>
> Joris
> _______________________________________________
> wine-users mailing list
> wine-users at winehq.org
> http://www.winehq.org/mailman/listinfo/wine-users
>
More information about the wine-users
mailing list