X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fbe202f33ba6acc3421fc811c33892d160ae722e..2c333dec2921a4d9248a33e4be7bc075f930f859:/lib/base/object.h 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) \