Skip to content

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
wants to merge 9 commits into
base: master
Choose a base branch
from
Draft

msgq implementation #1

wants to merge 9 commits into from

Conversation

devtekve
Copy link
Owner

None of this is really functional, just making things up in the air

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
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant