// January 10, 2002: Fixed bug in AtomicDivide - credit due to Jordi Guerrero
git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@11 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
parent
b1dfe0d9bc
commit
1c43c387b8
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,7 @@ namespace Loki
|
|||
{ return ++lval; }
|
||||
|
||||
static IntType AtomicDivide(volatile IntType& lval)
|
||||
{ return --lval; }
|
||||
{ return lval /= val; }
|
||||
|
||||
static void AtomicAssign(volatile IntType & lval, IntType val)
|
||||
{ lval = val; }
|
||||
|
@ -197,6 +197,7 @@ namespace Loki
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Change log:
|
||||
// June 20, 2001: ported by Nick Thurn to gcc 2.95.3. Kudos, Nick!!!
|
||||
// January 10, 2002: Fixed bug in AtomicDivide - credit due to Jordi Guerrero
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue