diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-02-27 15:39:02 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2007-02-27 15:39:02 +0000 |
| commit | f41b32acf318e07ea16e8f5be28e84261b13d8e2 (patch) | |
| tree | 32a7b6e09a1a5cb350e3c85e176656afd8142431 /lib/base/object.h | |
| parent | d3dd2b1e1743ac80fffb39fd0969211eae1d8994 (diff) | |
| download | enigma2-f41b32acf318e07ea16e8f5be28e84261b13d8e2.tar.gz enigma2-f41b32acf318e07ea16e8f5be28e84261b13d8e2.zip | |
add lock for smp safety
Diffstat (limited to 'lib/base/object.h')
| -rw-r--r-- | lib/base/object.h | 4 |
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) \ |
