Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
b0f24684
Commit
b0f24684
authored
Oct 16, 1998
by
Bob Halley
Browse files
checkpoint
parent
29852346
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/isc/timer.c
View file @
b0f24684
...
...
@@ -438,15 +438,25 @@ run(void *uap) {
timer_manager_t
manager
=
uap
;
struct
timespec
ts
;
boolean_t
timeout
;
os_time_t
now
;
LOCK
(
&
manager
->
lock
);
while
(
!
manager
->
done
)
{
INSIST
(
os_time_get
(
&
now
)
==
ISC_R_SUCCESS
);
printf
(
"timer run thread awake
\n
"
);
if
(
manager
->
nscheduled
>
0
)
{
/*
* XXX
*/
/*
ts.tv_sec = manager->next_time.seconds;
ts.tv_nsec = manager->next_time.nanoseconds;
*/
ts
.
tv_sec
=
now
.
seconds
+
5
;
ts
.
tv_nsec
=
0
;
timeout
=
FALSE
;
WAITUNTIL
(
&
manager
->
wakeup
,
&
manager
->
lock
,
&
ts
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment