Revision: 40893
http://brlcad.svn.sourceforge.net/brlcad/?rev=40893&view=rev
Author: davidloman
Date: 2010-10-01 17:26:09 +0000 (Fri, 01 Oct 2010)
Log Message:
-----------
WS, Formatting, include organization, double newline removal, etc.
Modified Paths:
--------------
rt^3/trunk/sandbox/CMakeLists.txt
rt^3/trunk/sandbox/QThreadTest.cxx
Modified: rt^3/trunk/sandbox/CMakeLists.txt
===================================================================
--- rt^3/trunk/sandbox/CMakeLists.txt 2010-10-01 17:15:46 UTC (rev 40892)
+++ rt^3/trunk/sandbox/CMakeLists.txt 2010-10-01 17:26:09 UTC (rev 40893)
@@ -42,7 +42,6 @@
# Required packages
#
-
#Find BRLCAD
FIND_PACKAGE ( BRLCAD REQUIRED )
IF (NOT BRLCAD_FOUND)
@@ -72,7 +71,6 @@
MESSAGE(STATUS "All Dependancies Found")
MESSAGE(STATUS "")
-
##############################################################
RT3_PROJECT(QThreadTest)
Modified: rt^3/trunk/sandbox/QThreadTest.cxx
===================================================================
--- rt^3/trunk/sandbox/QThreadTest.cxx 2010-10-01 17:15:46 UTC (rev 40892)
+++ rt^3/trunk/sandbox/QThreadTest.cxx 2010-10-01 17:26:09 UTC (rev 40893)
@@ -24,52 +24,49 @@
#import <QtCore/QThread>
#import <iostream>
-class TestThread: public QThread
+class TestThread : public QThread
{
public:
static void msleep(unsigned long int msec) {
- QThread::msleep(msec);
+ QThread::msleep(msec);
}
protected:
void run()
{
- TestThread::msleep(1500);
- std::cout << "Burp.\n";
+ TestThread::msleep(1500);
+ std::cout << "Burp.\n";
}
};
-class RelayThread: public QThread
+class RelayThread : public QThread
{
public:
RelayThread(QThread* thread) {
- this->thread = thread;
+ this->thread = thread;
}
- static void msleep(unsigned long int msec) {
- QThread::msleep(msec);
+ static void msleep(unsigned long int msec) {
+ QThread::msleep(msec);
}
protected:
void run()
{
- RelayThread::msleep(153);
- this->thread->start();
+ RelayThread::msleep(153);
+ this->thread->start();
}
private:
QThread* thread;
};
-
/**
* main application
*/
int main(int argc, char *argv[])
{
-
TestThread* t1 = new TestThread();
TestThread* t2 = new TestThread();
TestThread* t3 = new TestThread();
-
RelayThread r1(t1);
RelayThread r2(t2);
RelayThread r3(t3);
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