Made lock/unlock const.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13341 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2013-07-25 01:10:16 +00:00
parent dfb9de9733
commit bb249d1681

View File

@ -97,11 +97,11 @@ public:
/** Locks the mutex. Note that calls to get() or set() will fail, since
* they will try to lock the mutex as well!
*/
void lock() { pthread_mutex_lock(&m_mutex); }
void lock() const { pthread_mutex_lock(&m_mutex); }
// ------------------------------------------------------------------------
/** Unlocks the mutex.
*/
void unlock() {pthread_mutex_unlock(&m_mutex); }
void unlock() const {pthread_mutex_unlock(&m_mutex); }
// ------------------------------------------------------------------------
/** Gives access to the mutex, which can then be used in other pthread
* calls (e.g. pthread_cond_wait).