Skip to content

fix: expose queue policy as public API - #126

Merged
LimiNode merged 4 commits into
mainfrom
code/public-queue-policy
Sep 10, 2026
Merged

fix: expose queue policy as public API#126
LimiNode merged 4 commits into
mainfrom
code/public-queue-policy

Conversation

@LimiNode

@LimiNode LimiNode commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • remove the unused LOGIT_ENABLE_DROP_OLDEST_SLOWPATH CMake option
  • expose logit::QueuePolicy through the supported <logit.hpp> and <logit/loggers.hpp> umbrella headers
  • use the public alias in logger configuration and constructor signatures
  • keep leaf headers aggregate-first; no standalone QueuePolicy.hpp contract
  • document MPSC DropOldest semantics and the supported header policy

Validation

  • CMake configure/build succeeded on MSVC
  • all 55 tests passed (Debug)

This is intentionally separate from the documentation work in #125 and packaging dependency reuse in #127.

Remove the unused DropOldest slow-path option and publish QueuePolicy through a stable header and logging macros. Add an include-contract test for the public queue policy type.
Keep QueuePolicy owned by the loggers module umbrella and expose it through the unified public entry point. Remove the standalone leaf header and include-contract test so the documented header policy does not promise unsupported direct inclusion.
Verify that the supported logit/loggers.hpp entry point exports the public QueuePolicy alias without requiring a standalone leaf header.
Use the public QueuePolicy alias in logger configuration and constructor signatures while keeping the underlying enum implementation-owned. Clarify the aggregate-first header contract, document MPSC DropOldest semantics, and fix the queue policy example indentation.
@LimiNode
LimiNode force-pushed the code/public-queue-policy branch from d5eafd9 to 4b50cc1 Compare September 10, 2026 22:57
@LimiNode
LimiNode merged commit 099b167 into main Sep 10, 2026
14 checks passed
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