Make C++ mutex methods constant.
Closes #1729. Co-authored-by: Diego Fonseca <fonseca.diego.feeshy@gmail.com>
This commit is contained in:
@@ -13,9 +13,9 @@ namespace lime {
|
|||||||
Mutex ();
|
Mutex ();
|
||||||
~Mutex ();
|
~Mutex ();
|
||||||
|
|
||||||
bool Lock ();
|
bool Lock () const;
|
||||||
bool TryLock ();
|
bool TryLock () const;
|
||||||
bool Unlock ();
|
bool Unlock () const;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ namespace lime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Mutex::Lock () {
|
bool Mutex::Lock () const {
|
||||||
|
|
||||||
if (mutex) {
|
if (mutex) {
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ namespace lime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Mutex::TryLock () {
|
bool Mutex::TryLock () const {
|
||||||
|
|
||||||
if (mutex) {
|
if (mutex) {
|
||||||
|
|
||||||
@@ -49,7 +49,7 @@ namespace lime {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool Mutex::Unlock () {
|
bool Mutex::Unlock () const {
|
||||||
|
|
||||||
if (mutex) {
|
if (mutex) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user