Searched refs:itimer (Results 1 – 4 of 4) sorted by relevance
/external/python/cpython2/Lib/test/ |
D | test_signal.py | 403 self.itimer = None 408 if self.itimer is not None: # test_itimer_exc doesn't change this attr 410 signal.setitimer(self.itimer, 0) 452 self.itimer = signal.ITIMER_REAL 453 signal.setitimer(self.itimer, 1.0) 464 self.itimer = signal.ITIMER_VIRTUAL 466 signal.setitimer(self.itimer, 0.3, 0.2) 472 if signal.getitimer(self.itimer) == (0.0, 0.0): 479 self.assertEqual(signal.getitimer(self.itimer), (0.0, 0.0)) 487 self.itimer = signal.ITIMER_PROF [all …]
|
/external/autotest/client/tests/cyclictest/src/ |
D | cyclictest.c | 205 struct itimerval itimer; in timerthread() local 263 itimer.it_value.tv_sec = 1; in timerthread() 264 itimer.it_value.tv_usec = 0; in timerthread() 265 itimer.it_interval.tv_sec = interval.tv_sec; in timerthread() 266 itimer.it_interval.tv_usec = interval.tv_nsec / 1000; in timerthread() 267 setitimer (ITIMER_REAL, &itimer, NULL); in timerthread() 349 itimer.it_value.tv_sec = 0; in timerthread() 350 itimer.it_value.tv_usec = 0; in timerthread() 351 itimer.it_interval.tv_sec = 0; in timerthread() 352 itimer.it_interval.tv_usec = 0; in timerthread() [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_signal.py | 686 self.itimer = None 691 if self.itimer is not None: # test_itimer_exc doesn't change this attr 693 signal.setitimer(self.itimer, 0) 725 self.itimer = signal.ITIMER_REAL 726 signal.setitimer(self.itimer, 1.0) 734 self.itimer = signal.ITIMER_VIRTUAL 736 signal.setitimer(self.itimer, 0.3, 0.2) 742 if signal.getitimer(self.itimer) == (0.0, 0.0): 749 self.assertEqual(signal.getitimer(self.itimer), (0.0, 0.0)) 754 self.itimer = signal.ITIMER_PROF [all …]
|
/external/ltp/testcases/kernel/sched/process_stress/ |
D | process.c | 844 struct itimerstruc_t itimer, old_itimer; local 856 itimer.it_interval.tv_nsec = 0; 857 itimer.it_interval.tv_sec = 0; 858 itimer.it_value.tv_nsec = 0; 859 itimer.it_value.tv_sec = (time_t) (TVAL * 60.0); 860 if (incinterval(timer, &itimer, &old_itimer) == -1) { 873 struct itimerval itimer; local 875 memset(&itimer, 0, sizeof(struct itimerval)); 879 itimer.it_interval.tv_usec = 0; 880 itimer.it_interval.tv_sec = 0; [all …]
|