Skip to content

docs: clarify HIDAPI lifecycle concurrency rules - #853

Merged
Youw merged 1 commit into
masterfrom
clarify-agent-lifecycle-rules
Nov 15, 2026
Merged

Youw merged 1 commit into
masterfrom
clarify-agent-lifecycle-rules

Conversation

@Youw

@Youw Youw commented Nov 15, 2026

Copy link
Copy Markdown
Member

Correct the lifecycle rules in AGENTS.md: initialize before starting HIDAPI worker threads, and serialize the listed global functions with one another. The previous blanket restriction also prohibited enumeration/open calls alongside I/O on existing devices because those calls invoke hid_init() internally.

Keep shutdown ordering explicit: all other calls must return and all devices must be closed before hid_exit().

Validation: checked against the Multi-threading Notes and backend initialization paths; git diff --check passes. Documentation only; no runtime tests run.

Related to #834 and #852.

Generated by Codex (GPT-6).

Assisted-by: Codex:GPT-6

Require initialization before worker threads and completed calls and closed
devices before shutdown. Scope serialization to the listed global functions
instead of prohibiting every API call alongside repeated initialization.

Assisted-by: Codex:GPT-6
@Youw
Youw merged commit 750c87a into master Nov 15, 2026
29 of 30 checks passed
@Youw
Youw deleted the clarify-agent-lifecycle-rules branch November 15, 2026 21:12
@mcuee mcuee added the documentation Improvements or additions to documentation label Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants