Skip to content

Instantly share code, notes, and snippets.

@kahrl

kahrl/gist:8364329

Created Jan 10, 2014
Embed
What would you like to do?
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