mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-24 14:23:36 -05:00
Fixed usage of member _thread_id in RsMutex
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8610 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2a6e1d0a8c
commit
502d2353cb
@ -249,9 +249,7 @@ void RsMutex::unlock()
|
|||||||
if(--_cnt == 0)
|
if(--_cnt == 0)
|
||||||
{
|
{
|
||||||
#endif
|
#endif
|
||||||
#ifndef WIN32
|
|
||||||
_thread_id = 0 ;
|
_thread_id = 0 ;
|
||||||
#endif
|
|
||||||
pthread_mutex_unlock(&realMutex);
|
pthread_mutex_unlock(&realMutex);
|
||||||
|
|
||||||
#ifdef RSTHREAD_SELF_LOCKING_GUARD
|
#ifdef RSTHREAD_SELF_LOCKING_GUARD
|
||||||
|
@ -46,9 +46,7 @@ class RsMutex
|
|||||||
/* remove unused parameter warnings */
|
/* remove unused parameter warnings */
|
||||||
|
|
||||||
pthread_mutex_init(&realMutex, NULL);
|
pthread_mutex_init(&realMutex, NULL);
|
||||||
#ifdef RSTHREAD_SELF_LOCKING_GUARD
|
|
||||||
_thread_id = 0 ;
|
_thread_id = 0 ;
|
||||||
#endif
|
|
||||||
#ifdef RSMUTEX_DEBUG
|
#ifdef RSMUTEX_DEBUG
|
||||||
this->_name = name;
|
this->_name = name;
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user