Revision: 40707
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40707&view=rev
Author:   davidloman
Date:     2010-09-27 18:35:05 +0000 (Mon, 27 Sep 2010)

Log Message:
-----------
Make JobManager startup and shutdown an explicit call.

Modified Paths:
--------------
    rt^3/trunk/tests/libNet/libNetTest.cxx

Modified: rt^3/trunk/tests/libNet/libNetTest.cxx
===================================================================
--- rt^3/trunk/tests/libNet/libNetTest.cxx      2010-09-27 18:28:59 UTC (rev 
40706)
+++ rt^3/trunk/tests/libNet/libNetTest.cxx      2010-09-27 18:35:05 UTC (rev 
40707)
@@ -25,6 +25,7 @@
 
 #include "brlcad/bu.h"
 #include "libnet.h"
+#include "libjob.h"
 #include "libutility.h"
 
 #include <string>
@@ -82,6 +83,8 @@
 
 int main(int argc, char* argv[]) {
        Logger::getInstance();
+       JobManager::getInstance()->startup();
+
        logBanner("libNetTest");
 
        if (argc > 4 || argc < 3) {
@@ -144,12 +147,14 @@
                        GSThread::sleep(10);
                }
 
+               GSThread::sleep(1);
                logInfo("Shutting down...");
                pm.shutdown();
        }
 
        GSThread::sleep(1);
-
+       JobManager::getInstance()->shutdown(true);
+       GSThread::sleep(1);
        return 0;
 }
 


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