projects
/
junction.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adds cross compile and test cases
[junction.git]
/
junction
/
striped
/
Mutex.h
diff --git
a/junction/striped/Mutex.h
b/junction/striped/Mutex.h
index c88b1ab6eacb73b4b5abdd416278c98e0174a416..9921846bbd069a7b9fe4d0adfb851069ceff8cd1 100644
(file)
--- a/
junction/striped/Mutex.h
+++ b/
junction/striped/Mutex.h
@@
-48,7
+48,7
@@
public:
bool tryLock() {
return (m_status.compareExchange(-1, 0, turf::Acquire) < 0);
}
-
+
void unlock() {
if (m_status.exchange(-1, turf::Release) > 0)
m_event.signal();