diff options
author | frosch <frosch@openttd.org> | 2014-02-16 21:37:05 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2014-02-16 21:37:05 +0000 |
commit | 7ac18c0f22bcd62feede693be2617264eb5decf6 (patch) | |
tree | 9e19c462079a70919f6fa2c9616b04639251cbe8 /src/thread/thread_none.cpp | |
parent | b2ca2e297933c52e42f74b51c3f59b024ccb3772 (diff) | |
download | openttd-7ac18c0f22bcd62feede693be2617264eb5decf6.tar.xz |
(svn r26349) -Add: Optional recursive locking of mutexes.
Diffstat (limited to 'src/thread/thread_none.cpp')
-rw-r--r-- | src/thread/thread_none.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/thread/thread_none.cpp b/src/thread/thread_none.cpp index 67679bc81..415a62d59 100644 --- a/src/thread/thread_none.cpp +++ b/src/thread/thread_none.cpp @@ -21,8 +21,8 @@ /** Mutex that doesn't do locking because it ain't needed when there're no threads */ class ThreadMutex_None : public ThreadMutex { public: - virtual void BeginCritical() {} - virtual void EndCritical() {} + virtual void BeginCritical(bool allow_recursive = false) {} + virtual void EndCritical(bool allow_recursive = false) {} virtual void WaitForSignal() {} virtual void SendSignal() {} }; |