summaryrefslogtreecommitdiff
path: root/sal/osl/unx/interlck.c
diff options
context:
space:
mode:
authorHans-Joachim Lankenau <hjs@openoffice.org>2003-08-18 14:18:36 +0000
committerHans-Joachim Lankenau <hjs@openoffice.org>2003-08-18 14:18:36 +0000
commitb3c659c32c3f7ba0be17730696443892d637c0c5 (patch)
treebfca2b77fec55457a251e81d85b56c2c04733474 /sal/osl/unx/interlck.c
parent2d5b1b32e411bdd82f9768f5b13ed0a371e8786e (diff)
INTEGRATION: CWS geordi2q01 (1.9.16); FILE MERGED
2003/08/18 13:16:34 hr 1.9.16.1: #i18350#: join changes from CWS ooo11rc3
Diffstat (limited to 'sal/osl/unx/interlck.c')
-rw-r--r--sal/osl/unx/interlck.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/sal/osl/unx/interlck.c b/sal/osl/unx/interlck.c
index 9697b8e3744b..9458ec734142 100644
--- a/sal/osl/unx/interlck.c
+++ b/sal/osl/unx/interlck.c
@@ -2,9 +2,9 @@
*
* $RCSfile: interlck.c,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: hr $ $Date: 2003-07-16 17:20:50 $
+ * last change: $Author: hjs $ $Date: 2003-08-18 15:18:36 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -120,7 +120,8 @@ oslInterlockedCount SAL_CALL osl_incrementInterlockedCount(oslInterlockedCount*
"1: lwarx %0,0,%2\n\t"
" addi %0,%0,1\n\t"
" stwcx. %0,0,%2\n\t"
- " bne- 1b"
+ " bne- 1b\n\t"
+ " isync"
: "=&r" (nCount), "=m" (*pCount)
: "r" (pCount)
: "memory");
@@ -137,7 +138,8 @@ oslInterlockedCount SAL_CALL osl_decrementInterlockedCount(oslInterlockedCount*
"1: lwarx %0,0,%2\n\t"
" subi %0,%0,1\n\t"
" stwcx. %0,0,%2\n\t"
- " bne- 1b"
+ " bne- 1b\n\t"
+ " isync"
: "=&r" (nCount), "=m" (*pCount)
: "r" (pCount)
: "memory");