We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 085bdd9 commit e1b7a4dCopy full SHA for e1b7a4d
1 file changed
include/CXXGraph/Partitioning/CoordinatedRecord.hpp
@@ -117,12 +117,12 @@ bool CoordinatedRecord<T>::hasReplicaInPartition(const int m) const {
117
template <typename T>
118
bool CoordinatedRecord<T>::getLock() {
119
this->owns_lock = lock->try_lock();
120
- return owns_lock;
+ return this->owns_lock;
121
}
122
123
124
bool CoordinatedRecord<T>::releaseLock() {
125
- if (owns_lock) {
+ if (this->owns_lock) {
126
lock->unlock();
127
this->owns_lock = false;
128
return true;
0 commit comments