-
Notifications
You must be signed in to change notification settings - Fork 0
msgq implementation #1
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
Draft
devtekve
wants to merge
9
commits into
master
Choose a base branch
from
msgq
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
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
Introduces core Msgq components, including `MsgqDeep`, `MessageQueue`, and `MsgqMessage`, along with interfaces like `IMsgqMessage`. Also updates the test application to integrate basic message queue initialization.
Introduced `MessageQueueSubscriber` class to manage subscriber initialization and reader handling. Enhanced message queue header structure for multi-reader support. Added platform-specific signal handler stubs for future use in Linux/macOS environments.
Replaced `MessageQueue` with `MessageQueueSubscriber` and updated initialization parameters. Added a secondary queue setup for redundancy with identical configuration. These changes enhance robustness and ensure better handling of backup operations.
Moved `MessageQueueSubscriber` and `MessageQueuePublisher` to their own dedicated files for better structure and readability. Adjusted namespaces and updated field naming for consistency (e.g., `ReadUIDs` to `ReaderUIDs`). This change simplifies maintenance and future extensions of the messaging system.
Simplified the initialization process by directly instantiating message queue objects with required parameters. Updated to use `MessageQueuePublisher` and improved code readability by removing duplicate initialization blocks.
Introduced the MsgqSubSocket class with a basic implementation of the `Connect` method using `MessageQueueSubscriber`. Updated `MessagingServiceExtensions` to include a separate registration method for Msgq services and integrated it into the service pipeline. Additional methods remain partially implemented or as placeholders for further development.
Reorganized member variables, constructors, and methods to follow a cleaner and more consistent structure. Added nullable annotations, introduced proper encapsulation, and implemented previously unhandled operations like timeouts for subscribers. Simplified initialization and reset logic for both subscriber and publisher classes, ensuring better maintainability and future extension.
Replaced `int` with `long` for message size across interfaces and implementations to support larger data sizes. Implemented the `Packed64` struct for efficient pointer management and refactored `MessageQueueSubscriber` to streamline data handling. Additionally, modified the test application program flow and project configuration for better modularity and usability.
Updated all relevant structures, properties, and methods across queue components to use `ulong` instead of `long`. This ensures better consistency and compatibility for unsigned values, particularly for pointer and ID handling in shared message queue operations.
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.
None of this is really functional, just making things up in the air