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 ();
|
||||
|
||||
bool Lock ();
|
||||
bool TryLock ();
|
||||
bool Unlock ();
|
||||
bool Lock () const;
|
||||
bool TryLock () const;
|
||||
bool Unlock () const;
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace lime {
|
||||
}
|
||||
|
||||
|
||||
bool Mutex::Lock () {
|
||||
bool Mutex::Lock () const {
|
||||
|
||||
if (mutex) {
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace lime {
|
||||
}
|
||||
|
||||
|
||||
bool Mutex::TryLock () {
|
||||
bool Mutex::TryLock () const {
|
||||
|
||||
if (mutex) {
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace lime {
|
||||
}
|
||||
|
||||
|
||||
bool Mutex::Unlock () {
|
||||
bool Mutex::Unlock () const {
|
||||
|
||||
if (mutex) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user