Home | History | Annotate | Download | only in libBlocksRuntime

Lines Matching refs:where

103 static unsigned long int latching_incr_long(unsigned long int *where) {
105 unsigned long int old_value = *(volatile unsigned long int *)where;
109 if (OSAtomicCompareAndSwapLong(old_value, old_value+1, (volatile long int *)where)) {
116 static int latching_incr_int(int *where) {
118 int old_value = *(volatile int *)where;
122 if (OSAtomicCompareAndSwapInt(old_value, old_value+1, (volatile int *)where)) {
129 static int latching_decr_long(unsigned long int *where) {
131 unsigned long int old_value = *(volatile int *)where;
138 if (OSAtomicCompareAndSwapLong(old_value, old_value-1, (volatile long int *)where)) {
145 static int latching_decr_int(int *where) {
147 int old_value = *(volatile int *)where;
154 if (OSAtomicCompareAndSwapInt(old_value, old_value-1, (volatile int *)where)) {