mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Now buildble.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8982 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
e05da189da
commit
4e5244a4d8
@ -42,6 +42,7 @@ class CoreExport PThreadEngine : public ThreadEngine
|
||||
|
||||
class ThreadEngineFactory : public classbase
|
||||
{
|
||||
public:
|
||||
ThreadEngine* Create(InspIRCd* ServerInstance)
|
||||
{
|
||||
return new PThreadEngine(ServerInstance);
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user