Microseconds granularity SIGALRM interrupt support
Microseconds granularity SIGALRM interrupt support
От:
NikhilS <nikkhils@gmail.com>
Дата:
Hi,
Currently we have enable_sig_alarm() which provides millisecond level granularity in specifying delay. I tried using it by just specifying nonzero value for the timeval.it_value.tv_usec field before calling setitimer, but didn't seem to work well.
Do we have any function in the postgres codebase which provides microseconds level of delay coupled with SIGALRM support?
Regards,
Nikhils
EnterpriseDB http://www.enterprisedb.com
--
All the world's a stage, and most of us are desperately unrehearsed.
Re: Microseconds granularity SIGALRM interrupt support
От:
Tom Lane <tgl@sss.pgh.pa.us>
Дата:
NikhilS writes: > Do we have any function in the postgres codebase which provides microseconds > level of delay coupled with SIGALRM support? On most Unixen the resolution of SIGALRM is millisecond(s), so you'd be living in a dream world if you assumed it would work. regards, tom lane