Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2005 02:56:08 +0000 (UTC)
From:      David Xu <davidxu@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/sys timers.h src/sys/kern kern_sig.c kern_time.c
Message-ID:  <200510300256.j9U2u8QG090852@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
davidxu     2005-10-30 02:56:08 UTC

  FreeBSD src repository

  Modified files:
    sys/sys              timers.h 
    sys/kern             kern_sig.c kern_time.c 
  Log:
  Let itimer store itimerspec instead of itimerval, so I don't have to
  convert to or from timeval frequently.
  
  Introduce function itimer_accept() to ack a timer signal in signal
  acceptance code, this allows us to return more fresh overrun counter
  than at signal generating time. while POSIX says:
  "the value returned by timer_getoverrun() shall apply to the most
  recent expiration signal delivery or acceptance for the timer,.."
  I prefer returning it at acceptance time.
  
  Introduce SIGEV_THREAD_ID notification mode, it is used by thread
  libary to request kernel to deliver signal to a specified thread,
  and in turn, the thread library may use the mechanism to implement
  SIGEV_THREAD which is required by POSIX.
  
  Timer signal is managed by timer code, so it can not fail even if
  signal queue is full filled by sigqueue syscall.
  
  Revision  Changes    Path
  1.309     +5 -1      src/sys/kern/kern_sig.c
  1.121     +118 -59   src/sys/kern/kern_time.c
  1.9       +2 -2      src/sys/sys/timers.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510300256.j9U2u8QG090852>