Changeset - r10928:fda5764c1dba
[Not reviewed]
master
0 1 0
smatz - 15 years ago 2009-01-25 13:05:58
smatz@openttd.org
(svn r15266) -Fix (r15159): compilation without threads was broken
1 file changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/thread_none.cpp
Show inline comments
 
@@ -12,7 +12,7 @@
 
}
 

	
 
/** 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:
 
	virtual void BeginCritical() {}
 
	virtual void EndCritical() {}
 
@@ -20,5 +20,5 @@ public:
 

	
 
/* static */ ThreadMutex *ThreadMutex::New()
 
{
 
	return new ThreadMutex_None;
 
	return new ThreadMutex_None();
 
}
0 comments (0 inline, 0 general)