Skip to content

Instantly share code, notes, and snippets.

@kahrl
Created January 10, 2014 22:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kahrl/8364329 to your computer and use it in GitHub Desktop.
Save kahrl/8364329 to your computer and use it in GitHub Desktop.
diff --git a/src/jthread/jmutexautolock.h b/src/jthread/jmutexautolock.h
index 6020a5c..b11b3df 100644
--- a/src/jthread/jmutexautolock.h
+++ b/src/jthread/jmutexautolock.h
@@ -34,8 +34,8 @@
class JMutexAutoLock
{
public:
- JMutexAutoLock(JMutex &m) : mutex(m) { mutex.Lock(); }
- ~JMutexAutoLock() { mutex.Unlock(); }
+ JMutexAutoLock(JMutex &m) : mutex(m) { /*mutex.Lock();*/ }
+ ~JMutexAutoLock() { /*mutex.Unlock();*/ }
private:
JMutex &mutex;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment