On Jun 22 08:05, Ken Brown wrote:
> According to the Cygwin API documentation
> (https://cygwin.com/cygwin-api/std-notes.html), "getitimer and setitimer
> only support ITIMER_REAL for now."  I'm wondering whether there's any chance
> that support for ITIMER_PROF might be added.  I have no idea what the
> obstacles are.
> 
> My reason for asking is that emacs has a CPU profiling function, which
> doesn't work on Cygwin because it relies on ITIMER_PROF.  (There's an
> alternative implementation, but it requires timer_getoverrun, also not
> available in Cygwin.)

Both very tricky.  Given the description of timer_getoverrun and how
this stuff is implemented in Cygwin, you might get away with

  #ifdef __CYGWIN__
  #define timer_getoverrun(x)   0
  #endif

indepedently of using SIGEV_SIGNAL or SIGEV_THREAD.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpX1kOsxwkoL.pgp
Description: PGP signature

Reply via email to