Repository navigation
xmlrpc_server: thread cvc::app& through server thread and methods - #32
Merged
Merged
Conversation
Mirrors the #26 xmlrpc_client migration. xmlrpc_server_thread now takes cvc::app& at construction, stores it as a member, and uses state::instance(*_app) and _app->log/sleep/startThread instead of the cvcstate/cvcapp singleton macros. Method classes (cvcstate_*) now also carry an app* and resolve state through the bound context. The static monitor()/init() in the namespace-private bootstrapper takes ctx explicitly (captured once from app::instance() at startup). This also fixes a pre-existing build break under -DCVC_USING_XMLRPC=ON: the 1-arg thread_feedback() default ctor was removed in #25 and xmlrpc_server.cpp was the last unbuilt caller of it. Verified locally with CVC_USING_XMLRPC=ON: 590/590 tests pass.
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.
Mirrors the #26 xmlrpc_client migration.
xmlrpc_server_threadnow takescvc::app&at construction, stores it as a member, and usesstate::instance(*_app)plus_app->log/sleep/startThreadinstead of thecvcstate/cvcappsingleton macros. The 10 method classes (cvcstate_*) generated byXMLRPC_METHOD_PROTOTYPEnow also carry anapp*and resolve state through the bound context. The namespace-privatexmlrpc_server_thread_init::monitor()/init()take ctx explicitly (captured once fromapp::instance()at startup, since thestate::on_startupcallback chain is global).Also fixes a pre-existing build break under
-DCVC_USING_XMLRPC=ON: the 1-argthread_feedback()default ctor was removed in #25 andxmlrpc_server.cppwas the last unbuilt caller of it.CI does not build XMLRPC, but verified locally with
-DCVC_USING_XMLRPC=ON: 590/590 tests pass.