Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
5e24f138
Commit
5e24f138
authored
5 years ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
[db] Rename auxiliary function trigger into do_yield.
So to restrain trigger for the daemon function.
parent
b221752b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/kernel_services/plugin_entry_points/db.ml
+4
-4
4 additions, 4 deletions
src/kernel_services/plugin_entry_points/db.ml
with
4 additions
and
4 deletions
src/kernel_services/plugin_entry_points/db.ml
+
4
−
4
View file @
5e24f138
...
@@ -1139,7 +1139,7 @@ let raise_if_canceled () =
...
@@ -1139,7 +1139,7 @@ let raise_if_canceled () =
(* ---- Yielding ---- *)
(* ---- Yielding ---- *)
let
trigger
~
delayed
~
forced
()
=
let
do_yield
~
delayed
~
forced
()
=
match
!
daemons
with
match
!
daemons
with
|
[]
->
()
|
[]
->
()
|
ds
->
|
ds
->
...
@@ -1149,8 +1149,8 @@ let trigger ~delayed ~forced () =
...
@@ -1149,8 +1149,8 @@ let trigger ~delayed ~forced () =
raise_if_canceled
()
;
raise_if_canceled
()
;
end
end
let
yield
=
trigger
~
delayed
:
true
~
forced
:
false
let
yield
=
do_yield
~
delayed
:
true
~
forced
:
false
let
flush
=
trigger
~
delayed
:
false
~
forced
:
true
let
flush
=
do_yield
~
delayed
:
false
~
forced
:
true
(* ---- Sleeping ---- *)
(* ---- Sleeping ---- *)
...
@@ -1167,7 +1167,7 @@ let sleep ms =
...
@@ -1167,7 +1167,7 @@ let sleep ms =
if
period
=
0
then
if
period
=
0
then
begin
begin
Unix
.
sleepf
delta
;
Unix
.
sleepf
delta
;
trigger
~
delayed
:
false
~
forced
:
false
()
do_yield
~
delayed
:
false
~
forced
:
false
()
end
end
else
else
let
delay
=
float
period
*.
0
.
001
in
let
delay
=
float
period
*.
0
.
001
in
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment