aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/base/object.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base/object.h b/lib/base/object.h
index 8ac92b83..67a4606c 100644
--- a/lib/base/object.h
+++ b/lib/base/object.h
@@ -149,14 +149,14 @@ public:
void c::AddRef() \
{ \
__asm__ __volatile__( \
- " incl %0 \n" \
+ " lock ; incl %0 \n" \
: "=m" (ref.count) \
: "m" (ref.count); \
} \
void c::Release() \
{ \
__asm__ __volatile__( \
- " decl %0 \n" \
+ " lock ; decl %0 \n" \
: "=m" (ref.count) \
: "m" (ref.count); \
if (!ref) \