projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
995a168
)
pipe: Fix InterlockedDecrement usage.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 17 Apr 2009 14:01:38 +0000
(15:01 +0100)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 17 Apr 2009 14:01:38 +0000
(15:01 +0100)
src/gallium/include/pipe/p_atomic.h
patch
|
blob
|
history
diff --git
a/src/gallium/include/pipe/p_atomic.h
b/src/gallium/include/pipe/p_atomic.h
index 54dab12f894aa656c024c83cade419fd50f406eb..a963267e26430a51688b29cb6ff7d5fedae62f86 100644
(file)
--- a/
src/gallium/include/pipe/p_atomic.h
+++ b/
src/gallium/include/pipe/p_atomic.h
@@
-234,7
+234,7
@@
struct pipe_atomic
static INLINE boolean
p_atomic_dec_zero(struct pipe_atomic *v)
{
- return InterlockedDecrement(&v->count);
+ return InterlockedDecrement(&v->count)
!= 0
;
}
static INLINE void