mirror of https://github.com/OpenTTD/OpenTTD
(svn r15266) -Fix (r15159): compilation without threads was broken
parent
c1cf3934fa
commit
84848f8a28
|
@ -12,7 +12,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Mutex that doesn't do locking because it ain't needed when there're no threads */
|
/** Mutex that doesn't do locking because it ain't needed when there're no threads */
|
||||||
class ThreadMutex_None : ThreadMutex {
|
class ThreadMutex_None : public ThreadMutex {
|
||||||
public:
|
public:
|
||||||
virtual void BeginCritical() {}
|
virtual void BeginCritical() {}
|
||||||
virtual void EndCritical() {}
|
virtual void EndCritical() {}
|
||||||
|
@ -20,5 +20,5 @@ public:
|
||||||
|
|
||||||
/* static */ ThreadMutex *ThreadMutex::New()
|
/* static */ ThreadMutex *ThreadMutex::New()
|
||||||
{
|
{
|
||||||
return new ThreadMutex_None;
|
return new ThreadMutex_None();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue