Re: [PATCH resend] Reading POSIX CPU timer from outside the process.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Dario Faggioli
Date: Tuesday, January 4, 2011 - 4:01 am

On Thu, 2010-12-30 at 18:45 +0100, torbenh wrote: 
Well, I knew this, I knew it very well, as you can see from the code on
the git I pointed to (it's part of one of the examples!).

the thing is that I believe there are situations where it could be
useful to sample CLOCK_THREAD_CPUTIME_ID from a _different_ process, and
in that case, you can't access that thread's pthread-id, can you? :-O

The jack2 code I saw could be one of these "potential user", and AFAICT
your jack1 might be another one, no?
Yeah, I know, whether you can/want use this or not also depends on other
issues, but you are in a _different_ process --and thus you can't use
pthread_* calls-- aren't you?

I'm now looking at Oleg's solution and into glibc as well... I'll come
out with something ASAP.

Regards,
Dario

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
----------------------------------------------------------------------
Dario Faggioli, ReTiS Lab, Scuola Superiore Sant'Anna, Pisa  (Italy)

http://retis.sssup.it/people/faggioli -- dario.faggioli@jabber.org
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Read THREAD_CPUTIME clock from other processes., Dario Faggioli, (Thu Dec 23, 9:21 am)
Re: [PATCH] Read THREAD_CPUTIME clock from other processes., Dario Faggioli, (Thu Dec 23, 10:38 am)
Re: [PATCH] Read THREAD_CPUTIME clock from other processes., Dario Faggioli, (Thu Dec 23, 10:43 am)
Re: [PATCH resend] Reading POSIX CPU timer from outside th ..., Dario Faggioli, (Tue Jan 4, 4:01 am)