Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4d68a12f
Commit
4d68a12f
authored
Oct 14, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/Loop: split the AtScopeExit()
Fixes the !HAVE_THREADED_EVENT_LOOP build.
parent
0e951da6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Loop.cxx
src/event/Loop.cxx
+5
-2
No files found.
src/event/Loop.cxx
View file @
4d68a12f
...
...
@@ -200,20 +200,23 @@ EventLoop::Run() noexcept
SocketMonitor
::
Schedule
(
SocketMonitor
::
READ
);
#endif
AtScopeExit
(
this
)
{
#ifdef HAVE_URING
AtScopeExit
(
this
)
{
/* make sure that the Uring::Manager gets destructed
from within the EventThread, or else its
destruction in another thread will cause assertion
failures */
uring
.
reset
();
uring_initialized
=
false
;
};
#endif
#ifdef HAVE_THREADED_EVENT_LOOP
AtScopeExit
(
this
)
{
SocketMonitor
::
Cancel
();
#endif
};
#endif
do
{
now
=
std
::
chrono
::
steady_clock
::
now
();
...
...
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