ASF Bugzilla – Attachment 20465 Details for
Bug 42806
apr_atomic problems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
remove volatile usage on the atomic test code
apr-atomic-barrier-test.patch (text/plain), 1.39 KB, created by
Davi Arnaut
on 2007-07-05 12:24:08 UTC
(
hide
)
Description:
remove volatile usage on the atomic test code
Filename:
MIME Type:
Creator:
Davi Arnaut
Created:
2007-07-05 12:24:08 UTC
Size:
1.39 KB
patch
obsolete
>Index: apr/test/testatomic.c >=================================================================== >--- apr.orig/test/testatomic.c >+++ apr/test/testatomic.c >@@ -114,7 +114,7 @@ static void test_cas_notequal(abts_case > static void test_casptr_equal(abts_case *tc, void *data) > { > int a; >- volatile void *target_ptr = NULL; >+ void *target_ptr = NULL; > void *old_ptr; > > old_ptr = apr_atomic_casptr(&target_ptr, &a, NULL); >@@ -125,7 +125,7 @@ static void test_casptr_equal(abts_case > static void test_casptr_equal_nonnull(abts_case *tc, void *data) > { > int a, b; >- volatile void *target_ptr = &a; >+ void *target_ptr = &a; > void *old_ptr; > > old_ptr = apr_atomic_casptr(&target_ptr, &b, &a); >@@ -136,7 +136,7 @@ static void test_casptr_equal_nonnull(ab > static void test_casptr_notequal(abts_case *tc, void *data) > { > int a, b; >- volatile void *target_ptr = &a; >+ void *target_ptr = &a; > void *old_ptr; > > old_ptr = apr_atomic_casptr(&target_ptr, &a, &b); >@@ -214,8 +214,8 @@ void *APR_THREAD_FUNC thread_func_mutex( > void *APR_THREAD_FUNC thread_func_atomic(apr_thread_t *thd, void *data); > > apr_thread_mutex_t *thread_lock; >-volatile apr_uint32_t mutex_locks = 0; >-volatile apr_uint32_t atomic_ops = 0; >+apr_uint32_t mutex_locks = 0; >+apr_uint32_t atomic_ops = 0; > apr_status_t exit_ret_val = 123; /* just some made up number to check on later */ > > #define NUM_THREADS 40
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 42806
:
20437
|
20438
|
20439
|
20440
|
20441
|
20456
|
20457
|
20458
|
20459
|
20460
|
20461
|
20462
|
20463
|
20464
| 20465 |
20466
|
20468