diff options
author | rubidium <rubidium@openttd.org> | 2008-04-14 19:54:33 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-04-14 19:54:33 +0000 |
commit | 12188e7a5dde4cdd4304b3e738b7905e55f3ad9a (patch) | |
tree | a38226d767be0babf008f3304e7a61a4a00af2aa /src/thread_none.cpp | |
parent | a8008db23daf504af9f313ff0c53c5b89e756e05 (diff) | |
download | openttd-12188e7a5dde4cdd4304b3e738b7905e55f3ad9a.tar.xz |
(svn r12706) -Merge: the thread rewrite from NoAI. The rewrite makes the threading we have better extendable.
Diffstat (limited to 'src/thread_none.cpp')
-rw-r--r-- | src/thread_none.cpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/thread_none.cpp b/src/thread_none.cpp new file mode 100644 index 000000000..6209e89a7 --- /dev/null +++ b/src/thread_none.cpp @@ -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; +} |