Lines Matching +full:- +full:3

1 /* Copyright (c) 2016-2018 the Civetweb developers
34 #pragma GCC diagnostic ignored "-Wunused-function"
53 (*p)--; in action_dec()
55 if (*p < -1) { in action_dec()
60 return (*p >= -3) ? action_dec_ret : 0; in action_dec()
68 (*p)--; in action_dec_to_0()
70 if (*p <= -1) { in action_dec_to_0()
102 mg_sleep(10000); /* Sleep 10 second - timers will run */ in START_TEST()
108 mg_sleep(2000); /* Sleep 2 second - timers will not run */ in START_TEST()
120 ck_assert_int_ge(c[0], -1); in START_TEST()
122 ck_assert_int_ge(c[1], -1); in START_TEST()
124 ck_assert_int_ge(c[2], -1); in START_TEST()
153 mg_sleep(1000); /* Sleep 1 second - timer will run */ in START_TEST()
159 mg_sleep(1000); /* Sleep 1 second - timer will not run */ in START_TEST()
198 mg_sleep(1000); /* Sleep 1 second - timer will run */ in START_TEST()
204 mg_sleep(1000); /* Sleep 1 second - timer will not run */ in START_TEST()
232 /* 3 --> 2, because it is a single shot timer */ in START_TEST()
233 c[0] = 3; in START_TEST()
236 /* 3 --> 0, because it will run until c[1] = 0 and then stop */ in START_TEST()
237 c[1] = 3; in START_TEST()
240 /* 3 --> 1, with 750 ms period, it will run once at start, in START_TEST()
243 c[2] = 3; in START_TEST()
246 /* 3 --> 2, will run at start, but no cyclic in 1 second */ in START_TEST()
247 c[3] = 3; in START_TEST()
248 timer_add(&ctx, 0, 2.5, 1, action_dec_to_0, &c[3]); in START_TEST()
250 /* 3 --> 3, will not run at start */ in START_TEST()
251 c[4] = 3; in START_TEST()
254 /* 3 --> 2, an absolute timer in the past (-123.456) will still in START_TEST()
256 c[5] = 3; in START_TEST()
257 timer_add(&ctx, -123.456, 2.5, 0, action_dec_to_0, &c[5]); in START_TEST()
259 /* 3 --> 1, an absolute timer in the past (-123.456) will still in START_TEST()
261 c[6] = 3; in START_TEST()
262 timer_add(&ctx, -123.456, 0.75, 0, action_dec_to_0, &c[6]); in START_TEST()
266 mg_sleep(1000); /* Sleep 1 second - timer will run */ in START_TEST()
272 mg_sleep(1000); /* Sleep 1 second - timer will not run */ in START_TEST()
284 ck_assert_int_eq(c[3], 2); in START_TEST()
285 ck_assert_int_eq(c[4], 3); in START_TEST()