Skip to content

app: delete legacy 1-arg thread_info/thread_feedback/scoped_lock ctors - #24

Closed
transfix wants to merge 1 commit into
cvc-singleton/algorithm-thread-infofrom
cvc-singleton/drop-legacy-ctors
Closed

transfix wants to merge 1 commit into
cvc-singleton/algorithm-thread-infofrom
cvc-singleton/drop-legacy-ctors

Conversation

@transfix

@transfix transfix commented May 2, 2026

Copy link
Copy Markdown
Owner

Stacked on #23.

Removes the three legacy constructors that silently delegated to app::instance():

  • thread_info(const std::string&)
  • thread_feedback(const std::string&)
  • scoped_lock(const std::string&, const std::string&)

After PR #23 (algorithm.cpp dropping its 25 thread_info(BOOST_CURRENT_FUNCTION) calls), these legacy ctors had no callers outside of one site in state_object.h::handleStateChanged() lambda, which is updated to pass _ctx explicitly.

The (app&, ...) variants remain the supported API.

Remaining app::instance()/cvcapp users are now confined to:

  • xmlrpc_client.cpp / xmlrpc_server.cpp (deferred per master plan, bundled with cvcstate fold-in)
  • state.cpp:98-101 (Phase D, cvcstate fold-in)
  • app.h:620 #define cvcapp macro + app.cpp:187 app::instance() impl (Phase C, deleted last)

Build + ctest -j8 green: 590/590 (one ThreadFeedbackExceptionSafety flake passed on rerun, unrelated).

These three legacy constructors silently delegated to app::instance() and
were the last in-libcvc consumers of the singleton outside of xmlrpc and
state.cpp (both deferred until cvcstate fold-in).

Removed:
- thread_info(const std::string&)
- thread_feedback(const std::string&)
- scoped_lock(const std::string&, const std::string&)

The (app&, ...) variants remain the supported API. One in-tree caller in
state_object.h::handleStateChanged() lambda was updated to pass _ctx
explicitly to thread_feedback.

Stacked on #23 (algorithm.cpp dropped its 25 1-arg thread_info calls).

Build + ctest -j8 green: 590/590 (one ThreadFeedbackExceptionSafety
flake passed on rerun).
@transfix
transfix deleted the branch cvc-singleton/algorithm-thread-info May 2, 2026 20:50
@transfix transfix closed this May 2, 2026
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