Revision: 40575
          http://brlcad.svn.sourceforge.net/brlcad/?rev=40575&view=rev
Author:   davidloman
Date:     2010-09-15 14:35:00 +0000 (Wed, 15 Sep 2010)

Log Message:
-----------
Exposed QThread::sleep() ::msleep() and usleep() for utility.

Modified Paths:
--------------
    rt^3/trunk/include/GSThread.h
    rt^3/trunk/src/utility/GSThread.cxx

Modified: rt^3/trunk/include/GSThread.h
===================================================================
--- rt^3/trunk/include/GSThread.h       2010-09-15 14:13:28 UTC (rev 40574)
+++ rt^3/trunk/include/GSThread.h       2010-09-15 14:35:00 UTC (rev 40575)
@@ -27,13 +27,20 @@
 #define __GSTHREAD_H__
 
 #include <QtCore/QThread>
+#include <QtCore/QList>
 
 class GSThread : public QThread
 {
 public:
   GSThread();
-  virtual
-  ~GSThread();
+  virtual ~GSThread();
+
+  static void sleep (unsigned long secs);
+  static void msleep (unsigned long msecs);
+  static void usleep (unsigned long usecs);
+
+private:
+
 };
 
 #endif /* __GSTHREAD_H__ */

Modified: rt^3/trunk/src/utility/GSThread.cxx
===================================================================
--- rt^3/trunk/src/utility/GSThread.cxx 2010-09-15 14:13:28 UTC (rev 40574)
+++ rt^3/trunk/src/utility/GSThread.cxx 2010-09-15 14:35:00 UTC (rev 40575)
@@ -33,6 +33,24 @@
 {
 }
 
+void
+GSThread::sleep(unsigned long secs)
+{
+  QThread::sleep(secs);
+}
+
+void
+GSThread::msleep(unsigned long msecs)
+{
+  QThread::msleep(msecs);
+}
+
+void
+GSThread::usleep(unsigned long usecs)
+{
+  QThread::usleep(usecs);
+}
+
 // Local Variables:
 // tab-width: 8
 // mode: C++


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