Lines 84-90
Link Here
|
84 |
static void test_xchgptr(abts_case *tc, void *data) |
84 |
static void test_xchgptr(abts_case *tc, void *data) |
85 |
{ |
85 |
{ |
86 |
int a; |
86 |
int a; |
87 |
volatile void *target_ptr = NULL; |
87 |
void * volatile target_ptr = NULL; |
88 |
void *old_ptr; |
88 |
void *old_ptr; |
89 |
|
89 |
|
90 |
old_ptr = apr_atomic_xchgptr(&target_ptr, &a); |
90 |
old_ptr = apr_atomic_xchgptr(&target_ptr, &a); |
Lines 125-131
Link Here
|
125 |
static void test_casptr_equal(abts_case *tc, void *data) |
125 |
static void test_casptr_equal(abts_case *tc, void *data) |
126 |
{ |
126 |
{ |
127 |
int a; |
127 |
int a; |
128 |
volatile void *target_ptr = NULL; |
128 |
void * volatile target_ptr = NULL; |
129 |
void *old_ptr; |
129 |
void *old_ptr; |
130 |
|
130 |
|
131 |
old_ptr = apr_atomic_casptr(&target_ptr, &a, NULL); |
131 |
old_ptr = apr_atomic_casptr(&target_ptr, &a, NULL); |
Lines 136-142
Link Here
|
136 |
static void test_casptr_equal_nonnull(abts_case *tc, void *data) |
136 |
static void test_casptr_equal_nonnull(abts_case *tc, void *data) |
137 |
{ |
137 |
{ |
138 |
int a, b; |
138 |
int a, b; |
139 |
volatile void *target_ptr = &a; |
139 |
void * volatile target_ptr = &a; |
140 |
void *old_ptr; |
140 |
void *old_ptr; |
141 |
|
141 |
|
142 |
old_ptr = apr_atomic_casptr(&target_ptr, &b, &a); |
142 |
old_ptr = apr_atomic_casptr(&target_ptr, &b, &a); |
Lines 147-153
Link Here
|
147 |
static void test_casptr_notequal(abts_case *tc, void *data) |
147 |
static void test_casptr_notequal(abts_case *tc, void *data) |
148 |
{ |
148 |
{ |
149 |
int a, b; |
149 |
int a, b; |
150 |
volatile void *target_ptr = &a; |
150 |
void * volatile target_ptr = &a; |
151 |
void *old_ptr; |
151 |
void *old_ptr; |
152 |
|
152 |
|
153 |
old_ptr = apr_atomic_casptr(&target_ptr, &a, &b); |
153 |
old_ptr = apr_atomic_casptr(&target_ptr, &a, &b); |