ASF Bugzilla – Attachment 20464 Details for
Bug 42806
apr_atomic problems
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
os390 implementation volatile qualifier removal
apr-atomic-barrier-os390.patch (text/plain), 1.97 KB, created by
Davi Arnaut
on 2007-07-05 12:23:24 UTC
(
hide
)
Description:
os390 implementation volatile qualifier removal
Filename:
MIME Type:
Creator:
Davi Arnaut
Created:
2007-07-05 12:23:24 UTC
Size:
1.97 KB
patch
obsolete
>Index: apr/atomic/os390/atomic.c >=================================================================== >--- apr.orig/atomic/os390/atomic.c >+++ apr/atomic/os390/atomic.c >@@ -25,7 +25,7 @@ apr_status_t apr_atomic_init(apr_pool_t > return APR_SUCCESS; > } > >-apr_uint32_t apr_atomic_add32(volatile apr_uint32_t *mem, apr_uint32_t val) >+apr_uint32_t apr_atomic_add32(apr_uint32_t *mem, apr_uint32_t val) > { > apr_uint32_t old, new_val; > >@@ -36,7 +36,7 @@ apr_uint32_t apr_atomic_add32(volatile a > return old; > } > >-void apr_atomic_sub32(volatile apr_uint32_t *mem, apr_uint32_t val) >+void apr_atomic_sub32(apr_uint32_t *mem, apr_uint32_t val) > { > apr_uint32_t old, new_val; > >@@ -46,12 +46,12 @@ void apr_atomic_sub32(volatile apr_uint3 > } while (__cs(&old, (cs_t *)mem, new_val)); > } > >-apr_uint32_t apr_atomic_inc32(volatile apr_uint32_t *mem) >+apr_uint32_t apr_atomic_inc32(apr_uint32_t *mem) > { > return apr_atomic_add32(mem, 1); > } > >-int apr_atomic_dec32(volatile apr_uint32_t *mem) >+int apr_atomic_dec32(apr_uint32_t *mem) > { > apr_uint32_t old, new_val; > >@@ -63,17 +63,17 @@ int apr_atomic_dec32(volatile apr_uint32 > return new_val != 0; > } > >-apr_uint32_t apr_atomic_read32(volatile apr_uint32_t *mem) >+apr_uint32_t apr_atomic_read32(apr_uint32_t *mem) > { > return *mem; > } > >-void apr_atomic_set32(volatile apr_uint32_t *mem, apr_uint32_t val) >+void apr_atomic_set32(apr_uint32_t *mem, apr_uint32_t val) > { > *mem = val; > } > >-apr_uint32_t apr_atomic_cas32(volatile apr_uint32_t *mem, apr_uint32_t swap, >+apr_uint32_t apr_atomic_cas32(apr_uint32_t *mem, apr_uint32_t swap, > apr_uint32_t cmp) > { > apr_uint32_t old = cmp; >@@ -82,7 +82,7 @@ apr_uint32_t apr_atomic_cas32(volatile a > return old; /* old is automatically updated from mem on cs failure */ > } > >-apr_uint32_t apr_atomic_xchg32(volatile apr_uint32_t *mem, apr_uint32_t val) >+apr_uint32_t apr_atomic_xchg32(apr_uint32_t *mem, apr_uint32_t val) > { > apr_uint32_t old, new_val; >
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