(svn r12706) -Merge: the thread rewrite from NoAI. The rewrite makes the threading we have better extendable.

This commit is contained in:
rubidium
2008-04-14 19:54:33 +00:00
parent bf1d42c23d
commit d022d4af3d
18 changed files with 1076 additions and 348 deletions

42
src/thread_none.cpp Normal file
View File

@@ -0,0 +1,42 @@
/* $Id$ */
/** @file thread_none.cpp No-Threads-Available implementation of Threads */
#include "stdafx.h"
#include "thread.h"
#include "fiber.hpp"
/* static */ ThreadObject *ThreadObject::New(OTTDThreadFunc proc, void *param)
{
return NULL;
}
/* static */ ThreadObject *ThreadObject::AttachCurrent()
{
return NULL;
}
/* static */ uint ThreadObject::CurrentId()
{
return -1;
}
/* static */ ThreadSemaphore *ThreadSemaphore::New()
{
return NULL;
}
/* static */ Fiber *Fiber::New(FiberFunc proc, void *param)
{
return NULL;
}
/* static */ Fiber *Fiber::AttachCurrent(void *param)
{
return NULL;
}
/* static */ void *Fiber::GetCurrentFiberData()
{
return NULL;
}