Revision: 40845
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40845&view=rev
Author:   davidloman
Date:     2010-09-29 17:30:15 +0000 (Wed, 29 Sep 2010)

Log Message:
-----------
Clean up code.  Add/rem comments.  changed the sleep() call in 
GeometryService::_run() to msleep()

Modified Paths:
--------------
    rt^3/trunk/src/GS/GeometryService.cxx
    rt^3/trunk/src/GS/geoclient.cxx
    rt^3/trunk/src/GS/geoserv.cxx

Modified: rt^3/trunk/src/GS/GeometryService.cxx
===================================================================
--- rt^3/trunk/src/GS/GeometryService.cxx       2010-09-29 17:00:42 UTC (rev 
40844)
+++ rt^3/trunk/src/GS/GeometryService.cxx       2010-09-29 17:30:15 UTC (rev 
40845)
@@ -72,7 +72,7 @@
        this->pm->start();
 
        while (this->runCmd) {
-               GSThread::sleep(100);
+               GSThread::msleep(100);
        }
 
        this->pm->shutdown();
@@ -94,7 +94,7 @@
        switch(type) {
        case CMD_SHUTDOWN:
                log->logINFO("GeometryService", "Remote Shutdown Initiated.");
-               this->shutdown();
+               this->terminate(false);
                return true;
        }
        return false;

Modified: rt^3/trunk/src/GS/geoclient.cxx
===================================================================
--- rt^3/trunk/src/GS/geoclient.cxx     2010-09-29 17:00:42 UTC (rev 40844)
+++ rt^3/trunk/src/GS/geoclient.cxx     2010-09-29 17:30:15 UTC (rev 40845)
@@ -83,7 +83,7 @@
                return;
        }
     if(cmd == "sendshutdown") {
-       std::cout << list.size() << std::endl;
+
        if (list.size() !=2 ) {
                logInfo("useage: sendshutdown ip port");
                return;

Modified: rt^3/trunk/src/GS/geoserv.cxx
===================================================================
--- rt^3/trunk/src/GS/geoserv.cxx       2010-09-29 17:00:42 UTC (rev 40844)
+++ rt^3/trunk/src/GS/geoserv.cxx       2010-09-29 17:30:15 UTC (rev 40845)
@@ -36,6 +36,10 @@
 int main(int argc, char* argv[])
 {
     std::cout << std::endl << std::endl;
+
+    Logger::getInstance();
+       JobManager::getInstance()->startup();
+
     Logger* log = Logger::getInstance();
     log->logBANNER("geoserv", "GeometryService Config Loader");
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to