diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-11-29 17:55:07 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-11-29 17:55:07 +0200 |
commit | d10627a77fe022263e2319be282fbec68e713545 (patch) | |
tree | 72b0c0d140aed99f17438c978fa3bf4238dc436b /src/map.h | |
parent | d2090a32d84106815b3422bbbab5e6c9c681c152 (diff) | |
download | dragonfireclient-d10627a77fe022263e2319be282fbec68e713545.tar.xz |
Windows bug fixes
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -106,6 +106,7 @@ public: void cacheCreated() { + dstream<<"cacheCreated() begin"<<std::endl; JMutexAutoLock waitcachelock(m_waitcache_mutex); JMutexAutoLock countlock(m_count_mutex); @@ -114,10 +115,13 @@ public: m_cache_mutex.Lock(); m_count++; + + dstream<<"cacheCreated() end"<<std::endl; } void cacheRemoved() { + dstream<<"cacheRemoved() begin"<<std::endl; JMutexAutoLock countlock(m_count_mutex); assert(m_count > 0); @@ -127,6 +131,8 @@ public: // If this is the last one, release the cache lock if(m_count == 0) m_cache_mutex.Unlock(); + + dstream<<"cacheRemoved() end"<<std::endl; } /* @@ -137,8 +143,11 @@ public: */ JMutexAutoLock * waitCaches() { + dstream<<"waitCaches() begin"<<std::endl; JMutexAutoLock waitcachelock(m_waitcache_mutex); - return new JMutexAutoLock(m_cache_mutex); + JMutexAutoLock *lock = new JMutexAutoLock(m_cache_mutex); + dstream<<"waitCaches() end"<<std::endl; + return lock; } private: |