Skip to content

docs: refresh README and API docs for explicit-app API - #38

Merged
transfix merged 1 commit into
masterfrom
cvc-singleton/docs-update
May 4, 2026
Merged

transfix merged 1 commit into
masterfrom
cvc-singleton/docs-update

Conversation

@transfix

@transfix transfix commented May 4, 2026

Copy link
Copy Markdown
Owner

Updates the README and docs/ to reflect the removal of the cvcapp/cvcstate macros and app::instance()/state::instance() zero-arg singletons (PRs #36, #37).

Changes:

  • README.md: drops the singleton bullet in the App API section.
  • docs/APP_API.md: removes the deprecated-overloads block; drops the 'Legacy: routes through app::instance()' constructors from thread_info, thread_feedback, and scoped_lock signatures; reframes the migration note as history.
  • docs/STATE_API.md: adds a 'Per-app state roots' overview describing cvc::state::instance(app&); fixes the Construction and Access reference; rewrites all cvcstate(...) examples to cvc::state::instance(app)(...).
  • docs/TESTING.md: introduces cvc::app app; in the Isolation example; rewrites cvcstate examples.
  • docs/THREAD_POOL.md / THREAD_POOL_API.md: cvcapp. -> app.; thread_feedback in pool example takes app&.
  • docs/IMAGE_PROCESSING_ALGORITHMS.md: cvcapp.threadProgress() -> app.threadProgress().
  • docs/GRAPHICS_DATA_DRIVEN_UPDATES.md: cvc::state::instance() -> cvc::state::instance(app).

Doc-only; no code changes.

The cvcapp / cvcstate macros and the app::instance() / state::instance()
zero-arg singletons have been removed (PRs #36 and #37). Update the
documentation to match:

- README.md: drop the 'Singleton application object (cvcapp)' bullet;
  describe cvc::app as a per-app context object.
- docs/APP_API.md: remove the 'still present so existing code keeps
  compiling' migration note; remove the 'Deprecated: app::instance()
  / cvcapp' subsection; remove the 'Legacy: routes through
  app::instance()' overload entries from thread_info, thread_feedback,
  and scoped_lock signatures.
- docs/STATE_API.md: add a 'Per-app state roots' overview section
  explaining cvc::state::instance(app); rewrite the Construction and
  Access reference; rewrite all cvcstate(...) examples to
  cvc::state::instance(app)(...).
- docs/TESTING.md: introduce 'cvc::app app;' in the Isolation example;
  rewrite cvcstate(...) examples to cvc::state::instance(app)(...).
- docs/THREAD_POOL.md, docs/THREAD_POOL_API.md: rewrite cvcapp.* uses
  to app.*; thread_feedback in pool example takes app& explicitly.
- docs/IMAGE_PROCESSING_ALGORITHMS.md: cvcapp.threadProgress() ->
  app.threadProgress() in three places.
- docs/GRAPHICS_DATA_DRIVEN_UPDATES.md: cvc::state::instance() ->
  cvc::state::instance(app) in the usage example.
@transfix
transfix merged commit 951279f into master May 4, 2026
19 checks passed
@transfix
transfix deleted the cvc-singleton/docs-update branch May 4, 2026 22:31
transfix added a commit that referenced this pull request May 5, 2026
3.1.0 is the singleton-less API release:

  - Removed cvcapp / cvcstate macros and the zero-arg
    app::instance() / state::instance() singletons (PRs #36, #37).
  - All callers now reach the application context and state tree
    through an explicit cvc::app& argument.
  - Added cvc::app::root() member shorthand equivalent to
    cvc::state::instance(app) (PR #39).
  - Per-app state caching keyed on the owning cvc::app instance.
  - Documentation refresh across README, APP_API, STATE_API,
    TESTING, THREAD_POOL{,_API}, IMAGE_PROCESSING_ALGORITHMS,
    GRAPHICS_DATA_DRIVEN_UPDATES (PR #38).

CMakeLists.txt project version 3.0.0 -> 3.1.0; README Version
History gains a 3.1.0 entry; USAGE.md tarball/path examples
updated.
transfix added a commit that referenced this pull request May 5, 2026
The macOS Release CI builder of the master pipeline for #38 failed
HDF5Test.UnlinkNestedObject:

  Value of: hdf5_utils::objectExists(ctx, filepath, "group/subgroup/data")
    Actual: false
  Expected: true

The test creates a nested group/subgroup/data dataset, then calls
objectExists() (which opens a *separate* H5File handle internally to
do its check). On macOS Release the H5 library is free to keep the
new dataset's metadata buffered against the original handle past the
inner Group/DataSet release point, so the secondary handle observes
a file in which the dataset does not yet exist and the assertion
fails non-deterministically.

Force a global flush after each create/unlink before calling
objectExists(). Apply the same fix to the sibling
HDF5Test.UnlinkDataSet for symmetry, since it has the exact same
pattern and would race the same way under load.
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