Repository navigation
docs: split the README into integration, API and design docs - #7
Merged
Merged
Conversation
The README held the install guide, a configuration table, the API, use cases and a notes table, while the protocol, memory ordering and progress guarantees were spread across header comments and CONTRIBUTING.md. The README is now a landing page with a compiled quick start, and docs/design.md records the ordering argument, the uniprocessor backend's limits, progress, counter wrap and verification. A docs test compiles every C example, and CONTRIBUTING.md and AGENTS.md describe misch, scripts/format.sh and the current CI. The integration guide states that SEQLOCK_COUNTER_TYPE and the backend macros must match between the library and its callers, and that a replacement seqlock_conf.h earlier on the include path is never used, because seqlock.h includes it with quotes. Refs #6
5 tasks
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
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.
Refs #6
Splits the README into a landing page and three documents in the shared primitives layout, adds a test that compiles every documented example, and brings CONTRIBUTING.md and AGENTS.md in line with the current tooling.
Routing
docs/integration.mddocs/integration.md#configuration, rewritten: the replacement-header pattern does not work (see below)docs/integration.md#build-and-testdocs/api.md#configuration, as proseSEQLOCK_COUNTER_TYPEdefine desynchronises the caller from the compiled librarydocs/api.mddocs/api.md#recipes(bounded read, per-channel cells, run-time size); the wider counter moves to Configurationdocs/design.md(progress, counter wrap, payload copy, backends) anddocs/api.md#conventionsFindings recorded in the docs
seqlock_conf.hand the old README describe placing a projectconfig/seqlock_conf.hearlier on the include path.seqlock.hincludes it with quotes, so the copy besideseqlock.halways wins. A probe consumer whose replacement header contained#errorbuilt cleanly. The docs now say configuration is by-Donly. The header comment still describes the pattern; it is left for a code change.-DSEQLOCK_COUNTER_TYPE=uint64_tagainst a library built with the default compiles and links. The docs state the rule and show top-levelc_args, which a probe confirmed reach the subproject compile.volatiledoes not order the non-volatile payload copy against the counter, and there is no check that the counter is accessed in one instruction. Both are documented as limits for the consumer; this is the backend the C2000 compiler selects.loadnever returns. Documented, withtry_loadas the recipe.Checks
seqlock docs examples.max_retriestosize_tin a documented prototype fails it; reverted.s1 == s2comparison makes both fail on a mixed copy (test_seqlock_mt.c:65,test_seqlock_soak.c:76).docs/integration.mdrecords.misch run --baselinefor the base configuration and both profiles: pass, unchanged.scripts/format.sh: 12 files match. Relative links: 27 checked, 0 broken.No source or header changes.