diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-21 17:11:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-21 17:11:31 +0000 |
commit | 4e5244a4d82ea5083c401ac04440cb8dd6003941 (patch) | |
tree | 44dfd2c5d6a33b8b5f5bb799e05d9dc5ed31725a | |
parent | e05da189dada72dbd5b9e2667e66a289ff2ca9ba (diff) |
Now buildble.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8982 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/threadengines/threadengine_pthread.h | 1 | ||||
-rw-r--r-- | src/testsuite.cpp | 7 |
2 files changed, 6 insertions, 2 deletions
diff --git a/include/threadengines/threadengine_pthread.h b/include/threadengines/threadengine_pthread.h index e8f7a4087..7e4d4ec3f 100644 --- a/include/threadengines/threadengine_pthread.h +++ b/include/threadengines/threadengine_pthread.h @@ -42,6 +42,7 @@ class CoreExport PThreadEngine : public ThreadEngine class ThreadEngineFactory : public classbase { + public: ThreadEngine* Create(InspIRCd* ServerInstance) { return new PThreadEngine(ServerInstance); diff --git a/src/testsuite.cpp b/src/testsuite.cpp index a129ecc72..608179703 100644 --- a/src/testsuite.cpp +++ b/src/testsuite.cpp @@ -22,6 +22,7 @@ using namespace std; class TestSuiteThread : public Thread { + public: TestSuiteThread() : Thread() { } @@ -93,11 +94,13 @@ TestSuite::TestSuite(InspIRCd* Instance) : ServerInstance(Instance) bool TestSuite::DoThreadTests() { std::string anything; + ThreadEngine* te = NULL; + cout << "Creating new ThreadEngine class...\n"; try { ThreadEngineFactory* tef = new ThreadEngineFactory(); - ThreadEngine* te = tef->Create(ServerInstance); + te = tef->Create(ServerInstance); delete tef; } catch (...) @@ -113,7 +116,7 @@ bool TestSuite::DoThreadTests() te->Create(tst); - cout >> "Press enter to end test."; + cout << "Press enter to end test."; cin >> anything; /* Auto frees thread */ |