Home
last modified time | relevance | path

Searched refs:alarm (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/external/linux-kselftest/tools/testing/selftests/rtc/
Drtctest.c168 struct rtc_wkalrm alarm = { 0 }; in TEST_F() local
175 rc = ioctl(self->fd, RTC_RD_TIME, &alarm.time); in TEST_F()
178 secs = timegm((struct tm *)&alarm.time) + ALARM_DELTA; in TEST_F()
179 gmtime_r(&secs, (struct tm *)&alarm.time); in TEST_F()
181 alarm.enabled = 1; in TEST_F()
183 rc = ioctl(self->fd, RTC_WKALM_SET, &alarm); in TEST_F()
190 rc = ioctl(self->fd, RTC_WKALM_RD, &alarm); in TEST_F()
194 alarm.time.tm_mday, alarm.time.tm_mon + 1, in TEST_F()
195 alarm.time.tm_year + 1900, alarm.time.tm_hour, in TEST_F()
196 alarm.time.tm_min, alarm.time.tm_sec); in TEST_F()
[all …]
/external/grpc-grpc/test/cpp/common/
Dalarm_test.cc37 Alarm alarm; in TEST() local
38 alarm.Set(&cq, grpc_timeout_seconds_to_deadline(1), junk); in TEST()
57 Alarm alarm; in TEST() local
60 alarm.experimental().Set( in TEST()
75 Alarm alarm; in TEST() local
78 alarm.experimental().Set(grpc_timeout_seconds_to_deadline(0), [c](bool ok) { in TEST()
92 Alarm alarm; in TEST() local
95 alarm.experimental().Set( in TEST()
116 Alarm alarm; in TEST() local
118 std::thread t1([&alarm, &cq, &junk] { in TEST()
[all …]
/external/tensorflow/tensorflow/compiler/xla/service/
Dslow_operation_alarm.cc45 auto* alarm = *it; in AlarmLoop() local
47 if (alarm->deadline() <= now) { in AlarmLoop()
50 alarm->counter() == nullptr ? 0 : alarm->counter()->fetch_add(1); in AlarmLoop()
55 LOG(ERROR) << alarm->msg(); in AlarmLoop()
75 void ScheduleAlarm(SlowOperationAlarm* alarm) { in ScheduleAlarm() argument
84 outstanding_alarms->push_back(alarm); in ScheduleAlarm()
88 void UnscheduleAlarm(const SlowOperationAlarm* alarm) { in UnscheduleAlarm() argument
91 auto it = absl::c_find(*outstanding_alarms, alarm); in UnscheduleAlarm()
/external/grpc-grpc/src/cpp/common/
Dalarm.cc63 AlarmImpl* alarm = static_cast<AlarmImpl*>(arg); in Set() local
64 alarm->Ref(); in Set()
66 alarm->cq_, alarm, error, in Set()
68 arg, &alarm->completion_); in Set()
81 AlarmImpl* alarm = static_cast<AlarmImpl*>(arg); in Set() local
82 alarm->callback_(error == GRPC_ERROR_NONE); in Set()
83 alarm->Unref(); in Set()
/external/autotest/client/cros/power/
Dsys_power.py257 alarm, wakeup_count = prepare_wakeup(seconds)
258 rtc.set_wake_alarm(alarm)
267 if e.errno == errno.EBUSY and rtc.get_seconds() >= alarm:
278 check_wakeup(alarm)
290 alarm, _ = prepare_wakeup(seconds)
291 rtc.set_wake_alarm(alarm)
292 while rtc.get_seconds() < alarm:
303 return alarm
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
D9-1.c57 alarm(10); in main()
59 ret = alarm(10); in main()
75 ret = alarm(10); in main()
96 alarm(0); in main()
/external/linux-kselftest/tools/testing/selftests/powerpc/signal/
Dsignal.c66 alarm(0); /* Disable any pending */ in test_signal()
67 alarm(2); in test_signal()
82 alarm(0); /* Disable any pending */ in test_signal()
84 alarm(TIMEOUT); in test_signal()
Dsignal_tm.c68 alarm(0); /* Disable any pending */ in test_signal_tm()
70 alarm(TIMEOUT); in test_signal_tm()
/external/ltp/testcases/kernel/syscalls/alarm/
Dalarm03.c25 TEST(alarm(100)); in verify_alarm()
29 TEST(alarm(0)); in verify_alarm()
42 TEST(alarm(0)); in verify_alarm()
Dalarm06.c43 alarm(2); in verify_alarm()
46 ret = alarm(0); in verify_alarm()
Dalarm05.c28 ret = alarm(10); in run()
36 ret = alarm(1); in run()
Dalarm02.c36 ret = alarm(tc->sec); in verify_alarm()
44 TEST(alarm(0)); in verify_alarm()
/external/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl15.c148 alarm(60); in dochild1()
151 alarm((unsigned)0); in dochild1()
223 alarm(60); in dofork()
226 alarm((unsigned)0); in dofork()
299 alarm(60); in dochild2()
302 alarm((unsigned)0); in dochild2()
479 alarm(60); in run_test()
482 alarm((unsigned)0); in run_test()
/external/python/cpython2/Doc/library/
Dsignal.rst42 of execution. Any thread can perform an :func:`alarm`, :func:`getsignal`,
135 .. function:: alarm(time)
138 sent to the process in *time* seconds. Any previously scheduled alarm is
139 canceled (only one alarm can be scheduled at any time). The returned value is
140 then the number of seconds before any previously set alarm was to have been
141 delivered. If *time* is zero, no alarm is scheduled, and any scheduled alarm is
142 canceled. If the return value is zero, no alarm is currently scheduled. (See
143 the Unix man page :manpage:`alarm(2)`.) Availability: Unix.
169 :func:`alarm`) and after that every *interval* seconds. The interval
253 Here is a minimal example program. It uses the :func:`alarm` function to limit
[all …]
/external/python/cpython3/Lib/test/
Dtest_threadsignals.py60 signal.alarm(1)
63 signal.alarm(0)
97 signal.alarm(1)
107 signal.alarm(0)
138 signal.alarm(1)
145 signal.alarm(0)
/external/igt-gpu-tools/tests/
Ddrm_read.c77 alarm(0); in setup()
97 alarm(0); in teardown()
107 alarm(1); in test_invalid_buffer()
131 alarm(1); in test_fault_buffer()
144 alarm(1); in test_empty()
161 alarm(3); in test_short_buffer()
/external/ltp/testcases/kernel/syscalls/kill/
Dkill02.c311 (void)alarm(TIMEOUT); in parent_rout()
316 (void)alarm(TIMEOUT); in parent_rout()
320 (void)alarm(0); /*Reset the alarm clock. */ in parent_rout()
433 (void)alarm(TIMEOUT); in parent_rout()
537 (void)alarm(TIMEOUT - 40); in child1_rout()
541 (void)alarm(TIMEOUT - 40); in child1_rout()
545 (void)alarm(0); /*Reset the alarm clock. */ in child1_rout()
/external/iputils/
Dtftpd.c186 alarm(0); in main()
379 alarm(rexmtval); /* read the ack */ in sendfile()
381 alarm(0); in sendfile()
444 alarm(rexmtval); in recvfile()
446 alarm(0); in recvfile()
482 alarm(rexmtval); in recvfile()
484 alarm(0); in recvfile()
/external/llvm/lib/Support/Unix/
DWatchdog.inc22 alarm(seconds);
28 alarm(0);
/external/swiftshader/third_party/llvm-subzero/lib/Support/Unix/
DWatchdog.inc22 alarm(seconds);
28 alarm(0);
/external/linux-kselftest/tools/testing/selftests/prctl/
Ddisable-tsc-ctxt-sw-stress-test.c52 alarm(10); in segvtask()
73 alarm(10); in rdtsctask()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/Unix/
DWatchdog.inc24 alarm(seconds);
30 alarm(0);
/external/ltp/testcases/kernel/syscalls/rt_sigsuspend/
Drt_sigsuspend01.c37 alarm(1); in verify_rt_sigsuspend()
41 alarm(0); in verify_rt_sigsuspend()
/external/grpc-grpc/src/core/lib/iomgr/
Dtcp_client_custom.cc40 grpc_timer alarm; member
90 grpc_timer_cancel(&connect->alarm); in custom_connect_callback()
145 grpc_timer_init(&connect->alarm, deadline, &connect->on_alarm); in tcp_connect()
/external/u-boot/arch/arm/dts/
Dkirkwood-lsxl.dtsi37 pmx_led_alarm: pmx-led-alarm {
146 alarm {
147 label = "lsxl:red:alarm";
178 alarm-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;

12345678910>>...14