thread_none.cpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00012 #include "../stdafx.h"
00013 #include "thread.h"
00014
00015 bool ThreadObject::New(OTTDThreadFunc proc, void *param, ThreadObject **thread)
00016 {
00017 if (thread != NULL) *thread = NULL;
00018 return false;
00019 }
00020
00022 class ThreadMutex_None : public ThreadMutex {
00023 public:
00024 virtual void BeginCritical() {}
00025 virtual void EndCritical() {}
00026 virtual void WaitForSignal() {}
00027 virtual void SendSignal() {}
00028 };
00029
00030 ThreadMutex *ThreadMutex::New()
00031 {
00032 return new ThreadMutex_None();
00033 }