Repository navigation
app: use this->uniqueThreadKey() inside startThread<T> (no singleton self-reach) - #19
Merged
Merged
Conversation
…pp::instance() The startThread<T>() member template was reaching back into app::instance() to ask the singleton for a unique thread key, even though 'this' is the same app object. Switch to this->uniqueThreadKey() so the member is self-contained and no longer participates in singleton bookkeeping. ctest 590/590 (debug).
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.
Tiny cleanup, part of cvcapp-singleton removal.
app::startThread<T>()was reaching intoapp::instance().uniqueThreadKey(key)even thoughthisIS the app — a relic from when only one app existed. Switch tothis->uniqueThreadKey(key). Behaviorally a no-op while the singleton exists; semantically removes one of the last in-class singleton self-references and makes the template safe for non-singletonappinstances (like the per-test fixtures used by the test migrations).Validation
ctest -j8590/590 pass.After this lands, the only
app::instance()references insideinc/cvc/app.hare the deprecated legacy ctors (lines 384/421/495) and thecvcappmacro itself — all explicitly slated for deletion in Phase C.