Make C++ mutex methods constant.

Closes #1729.

Co-authored-by: Diego Fonseca <fonseca.diego.feeshy@gmail.com>
This commit is contained in:
Joseph Cloutier
2024-02-05 15:11:33 -05:00
parent f52b59bbff
commit 4819ff3b27
2 changed files with 6 additions and 6 deletions

View File

@@ -13,9 +13,9 @@ namespace lime {
Mutex ();
~Mutex ();
bool Lock ();
bool TryLock ();
bool Unlock ();
bool Lock () const;
bool TryLock () const;
bool Unlock () const;
private:

View File

@@ -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) {