Date: Fri, 2 Nov 2007 06:51:23 +1100 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Michael B Allen <ioplex@gmail.com> Cc: freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Re: timers and semtimedop(2) Message-ID: <20071101195123.GJ25671@server.vk2pj.dyndns.org> In-Reply-To: <78c6bd860711011041o6d10753an663f19389737f84b@mail.gmail.com> References: <78c6bd860711011041o6d10753an663f19389737f84b@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 01, 2007 at 01:41:10PM -0400, Michael B Allen wrote: >I need semtimedop(2). I'm thinking I can just do a semop with a SIGINT may= be. I presume you mean SIGALRM. >Can someone suggest a good method for setting up a timer to deliver >the signal? What sort of timers does FreeBSD offer? Assuming you aren't planning on creating a new syscall: man setitimer There's also kqueue EVFILT_TIMER but that is probably only useful if you are already using kqueue for other purposes. --=20 Peter --huq684BweRXVnRxX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFHKi47/opHv/APuIcRAmE4AKCLuMMYwTJIxxSdk/CmHQaCJa7pMACgthfB o48IF6ruGWzCEqcdWsnGFKo= =1umR -----END PGP SIGNATURE----- --huq684BweRXVnRxX--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071101195123.GJ25671>