Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
17
Merge Requests
17
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
36eec73f
Commit
36eec73f
authored
Mar 07, 2017
by
Libor Peltan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
evshed: don't unlock heap-lock on callback call to prevent race
parent
ffa9cfe1
Pipeline
#2253
passed with stages
in 16 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/knot/common/evsched.c
src/knot/common/evsched.c
+0
-2
No files found.
src/knot/common/evsched.c
View file @
36eec73f
...
...
@@ -85,9 +85,7 @@ static int evsched_run(dthread_t *thread)
if
(
timercmp_ge
(
&
dt
,
&
ev
->
tv
))
{
heap_delmin
(
&
sched
->
heap
);
pthread_mutex_unlock
(
&
sched
->
heap_lock
);
ev
->
cb
(
ev
);
pthread_mutex_lock
(
&
sched
->
heap_lock
);
}
else
{
/* Wait for next event or interrupt. Unlock calendar. */
struct
timespec
ts
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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