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
8849b9b6
Commit
8849b9b6
authored
Oct 15, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event/SocketEvent: move Abandon() up
parent
caa2611a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
SocketEvent.cxx
src/event/SocketEvent.cxx
+9
-9
No files found.
src/event/SocketEvent.cxx
View file @
8849b9b6
...
...
@@ -48,6 +48,15 @@ SocketEvent::Close() noexcept
fd
.
Close
();
}
void
SocketEvent
::
Abandon
()
noexcept
{
if
(
std
::
exchange
(
scheduled_flags
,
0
)
!=
0
)
loop
.
AbandonFD
(
fd
.
Get
());
fd
=
SocketDescriptor
::
Undefined
();
}
bool
SocketEvent
::
Schedule
(
unsigned
flags
)
noexcept
{
...
...
@@ -86,15 +95,6 @@ SocketEvent::Schedule(unsigned flags) noexcept
}
void
SocketEvent
::
Abandon
()
noexcept
{
if
(
std
::
exchange
(
scheduled_flags
,
0
)
!=
0
)
loop
.
AbandonFD
(
fd
.
Get
());
fd
=
SocketDescriptor
::
Undefined
();
}
void
SocketEvent
::
Dispatch
()
noexcept
{
const
unsigned
flags
=
std
::
exchange
(
ready_flags
,
0
)
&
...
...
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