Repository navigation
algorithm: drop noisy thread_info(string) tracing from helpers - #23
Merged
Merged
Conversation
These 25 sites used the legacy thread_info(string) constructor that delegates to app::instance(). They were per-call thread-info breadcrumbs in pure-math and inner-loop helpers (tet_volume, tet_aspect_ratio, tet_min_dihedral_angle, hex_volume/jacobian/scaled_jacobian, interpolate_in_tet/hex, tet_barycentric, hex_trilinear, find_tets/hexs_containing_point, compute_mesh_bounds, compute_tet/hex_quality_stats, filter_tets/hexs_by_quality, extract_quality_elements, extract_surface) plus the public iso/tetrahedralize/ hexahedralize/quality_improve entry points. Their only side effect was mutating a per-thread status string visible via cvcapp's thread inspector. Removing them eliminates 25 callers of the singleton-delegating ctor without changing any public API. Callers that want thread tracking can wrap the operation externally with thread_info(ctx, ...). The (app&) ctor at app.h:373 is unchanged and remains the supported entry. Net: 25 fewer app::instance() call sites in libcvc. Build + ctest (-j8) green: 590/590.
transfix
force-pushed
the
cvc-singleton/algorithm-thread-info
branch
from
May 2, 2026 20:29
58bc97f to
ca98a5e
Compare
transfix
added a commit
that referenced
this pull request
May 2, 2026
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
added a commit
that referenced
this pull request
May 2, 2026
#25) 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).
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.
Removes 25 call sites of the legacy
thread_info(string)constructor fromsrc/cvc/algorithm.cpp. Each was a per-call thread-info breadcrumb that delegated toapp::instance(). They appeared in:iso,tetrahedralize,hexahedralize,tetrahedralize2(×2),geometry::quality_improve,extract_surface,extract_quality_elementstet_volume,tet_aspect_ratio,tet_min_dihedral_angle,hex_volume,hex_jacobian,hex_scaled_jacobian,tet_barycentric,hex_trilinear,interpolate_in_tet,interpolate_in_hexfind_tets_containing_point,find_hexs_containing_point,compute_mesh_bounds,compute_tet_quality_stats,compute_hex_quality_stats,filter_tets_by_quality,filter_hexs_by_qualityTheir only side effect was mutating a per-thread status string visible via
cvcapp's thread inspector. Removing them eliminates 25 of the remaining singleton callers without changing any public signature. Callers that want thread tracking can wrap the operation externally withthread_info(ctx, ...).The (app&) ctor at
app.h:373is unchanged and remains the supported entry.Build +
ctest -j8green: 590/590 (one StateTest.StateObjectRenderer flake passed on rerun, unrelated).