[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 45/50: controlport: ensure proper ctrlport
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 45/50: controlport: ensure proper ctrlport shutdown. |
Date: |
Wed, 15 Apr 2015 21:07:57 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch master
in repository gnuradio.
commit eae69f3420aea0318709b2bebe61380e8a18134f
Author: Nate Goergen <address@hidden>
Date: Sun Mar 15 20:29:09 2015 -0500
controlport: ensure proper ctrlport shutdown.
Create instance of rpcmanager to ensure proper ctrlport shutdown and
some minor cleanup
---
.../include/gnuradio/thrift_application_base.h | 14 ++++----------
gnuradio-runtime/lib/controlport/rpcserver_selector.cc | 4 ++++
2 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/gnuradio-runtime/include/gnuradio/thrift_application_base.h
b/gnuradio-runtime/include/gnuradio/thrift_application_base.h
index f649ac2..aa50c55 100644
--- a/gnuradio-runtime/include/gnuradio/thrift_application_base.h
+++ b/gnuradio-runtime/include/gnuradio/thrift_application_base.h
@@ -39,7 +39,7 @@ namespace apache { namespace thrift { namespace server {
class TServer; } } }
/*!
* \brief Class to be statically initialized by thrift_application_base. Used
- * to store state for thrift_application_base's static functions.
+ * to store state for thrift_application_base's singleton functions.
*/
class thrift_application_base_impl
@@ -69,7 +69,7 @@ public:
* \param TserverBase Template parameter naming the type of the server
* base, which is typically rpcserverbase.
* \param TserverClass Template parameter naming the eventual type of
- * the the fully derived application.
+ * the fully derived application.
* \param _app Reference to the fully derived application instance to
* be returned by thrift_application_base::i().
*/
@@ -208,20 +208,14 @@ void thrift_application_base<TserverBase,
TserverClass>::start_application()
static_cast<unsigned int>(gr::prefs::singleton()->get_long("thrift",
"init_attempts",
d_default_max_init_attempts));
-
if(!p_impl->d_application_initilized) {
- p_impl->d_start_thrift_thread.reset(
- (new
gr::thread::thread(boost::bind(&thrift_application_base::start_thrift,
d_application))));
+ p_impl->d_start_thrift_thread.reset(
+ (new
gr::thread::thread(boost::bind(&thrift_application_base::start_thrift,
d_application))));
bool app_started(false);
for(unsigned int attempts(0); (!app_started && attempts <
max_init_attempts); ++attempts) {
boost::this_thread::sleep(boost::posix_time::milliseconds(THRIFTAPPLICATION_ACTIVATION_TIMEOUT_MS));
-
app_started = d_application->application_started();
-
- if(app_started) {
- std::cerr << "@";
- }
}
if(!app_started) {
diff --git a/gnuradio-runtime/lib/controlport/rpcserver_selector.cc
b/gnuradio-runtime/lib/controlport/rpcserver_selector.cc
index 57b42ca..bfb6eb9 100644
--- a/gnuradio-runtime/lib/controlport/rpcserver_selector.cc
+++ b/gnuradio-runtime/lib/controlport/rpcserver_selector.cc
@@ -26,6 +26,10 @@
bool rpcmanager::make_aggregator(false);
+#ifdef GR_RPCSERVER_ENABLED
+rpcmanager manager_instance;;
+#endif
+
#ifdef GR_RPCSERVER_ICE
#error TODO ICE
#endif
- [Commit-gnuradio] [gnuradio] 31/50: controlport: moving the logger call that publishes Thrift's endpoint to i_impl()., (continued)
- [Commit-gnuradio] [gnuradio] 31/50: controlport: moving the logger call that publishes Thrift's endpoint to i_impl()., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 24/50: controlport: adding performance and controlport monitor GRC blocks., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 29/50: controlport: changing the default port number on the Thrift interface to zero., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 21/50: controlport: Adds ability to configure Thrift through a config file, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 30/50: controlport: ephemeral / unused port number selection by OS working., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 13/50: controlport: using threaded server for multiple connections., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 39/50: controlport: documentation cleanup, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 35/50: controlport: cleanup, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 33/50: controlport: more cleanup and conveniences, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 11/50: controlport: more work on the translation layer; properties and setting parameters in gr-ctrlport-monitor now working., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 45/50: controlport: ensure proper ctrlport shutdown.,
git <=
- [Commit-gnuradio] [gnuradio] 08/50: controlport: adding abstraction layer for the controlport backends; support thrift currently., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 25/50: controlport: fixing up some issues; generate thrift sources into thrift subdir., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 16/50: controlport: switching rpcpmtconverter::to_pmt() to To_PMT singleton, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 40/50: controlport: documentation cleanup, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 10/50: controlport: more cleanup of python code to help generalize the interface, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 38/50: controlport: cleanup, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 41/50: controlport: cmake fixes to FindThrift for when thrift is not installed., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 43/50: controlport: more documentation and linking info., git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 37/50: controlport: Some documentation, git, 2015/04/16
- [Commit-gnuradio] [gnuradio] 32/50: controlport: moving the generation of the Thrift endpoint string to the application_started() function., git, 2015/04/16