forked from MusicPlayerDaemon/MPD
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from MusicPlayerDaemon:master #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
POSIX demands that CLOCK_MONOTONIC must never go backwards, but in practice, there can be small warps, e.g. after a CPU migration. If that happens, it's a POSIX violation, but please don't crash my code with assertion failure. Sigh.
This implies "-static-libstdc++ -static-libgcc" and also links the pthread library (i.e. libwinpthread-1) statically. Closes #2287
Reviewer's GuideThis PR refines event scheduling and masking by adding granular cancellation methods, unifies dead-connection masks across backends, removes obsolete code, tweaks build flags, and cleans up a redundant assertion in the timer wheel. Sequence Diagram: Using CancelReadAndScheduleReadHangup for Socket EventssequenceDiagram
participant CL as ClientLogic
participant SE as SocketEvent
CL->>SE: CancelReadAndScheduleReadHangup()
activate SE
SE-->>SE: Schedule((flags & ~READ) | READ_HANGUP)
deactivate SE
alt Hangup Occurs
SE-->>CL: Notify Hangup (due to READ_HANGUP)
end
Sequence Diagram: Using CancelOnlyRead to Preserve Implicit FlagssequenceDiagram
participant EH as EventHandler
participant SE as SocketEvent
EH->>SE: CancelOnlyRead()
activate SE
SE-->>SE: Schedule(current_flags & ~READ)
deactivate SE
Class Diagram: Updates to Event Handling Classes and StructsclassDiagram
class SocketEvent {
+CancelOnlyRead(): void
+CancelOnlyWrite(): void
+CancelReadAndScheduleReadHangup(): void
}
class PipeEvent {
+CancelOnlyRead(): void
+CancelOnlyWrite(): void
}
PipeEvent o-- SocketEvent : uses
class EpollEvents {
+READ_HANGUP: const unsigned$
+DEAD_MASK: const unsigned$
}
class PollEvents {
+DEAD_MASK: const unsigned$
}
class WinSelectEvents {
+DEAD_MASK: const unsigned$
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.1)
Can you help keep this open source service alive? 💖 Please sponsor : )
Summary by Sourcery
Sync with upstream changes to enhance socket event handling, introduce unified dead-socket masks, streamline the build toolchain, and remove deprecated or redundant code
Bug Fixes:
Enhancements:
Build: