diff options
author | Lennart Poettering <lennart@poettering.net> | 2007-05-27 20:38:14 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2007-05-27 20:38:14 +0000 |
commit | 918cacb4f4efa80a0bc4b7183da1e9c1cb10ed9c (patch) | |
tree | b11f02477bd623b81511e8d88e84008ad96588ee /src/pulsecore/memblock.h | |
parent | 6a2dffd78af88ec3c3089c3a852af6d3a6b499bf (diff) |
Replace AO_xxx usage with pa_atomic_xxx and friends wherever it makes sense
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@1459 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/pulsecore/memblock.h')
-rw-r--r-- | src/pulsecore/memblock.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/pulsecore/memblock.h b/src/pulsecore/memblock.h index 3eace92c..fe4773d4 100644 --- a/src/pulsecore/memblock.h +++ b/src/pulsecore/memblock.h @@ -30,6 +30,7 @@ #include <pulsecore/llist.h> #include <pulsecore/refcnt.h> +#include <pulsecore/atomic.h> /* A pa_memblock is a reference counted memory block. PulseAudio * passed references to pa_memblocks around instead of copying @@ -82,20 +83,20 @@ struct pa_memblock { * n_accumulated is not yet. Take these values with a grain of salt, * threy are here for purely statistical reasons.*/ struct pa_mempool_stat { - AO_t n_allocated; - AO_t n_accumulated; - AO_t n_imported; - AO_t n_exported; - AO_t allocated_size; - AO_t accumulated_size; - AO_t imported_size; - AO_t exported_size; - - AO_t n_too_large_for_pool; - AO_t n_pool_full; - - AO_t n_allocated_by_type[PA_MEMBLOCK_TYPE_MAX]; - AO_t n_accumulated_by_type[PA_MEMBLOCK_TYPE_MAX]; + pa_atomic_int_t n_allocated; + pa_atomic_int_t n_accumulated; + pa_atomic_int_t n_imported; + pa_atomic_int_t n_exported; + pa_atomic_int_t allocated_size; + pa_atomic_int_t accumulated_size; + pa_atomic_int_t imported_size; + pa_atomic_int_t exported_size; + + pa_atomic_int_t n_too_large_for_pool; + pa_atomic_int_t n_pool_full; + + pa_atomic_int_t n_allocated_by_type[PA_MEMBLOCK_TYPE_MAX]; + pa_atomic_int_t n_accumulated_by_type[PA_MEMBLOCK_TYPE_MAX]; }; /* Allocate a new memory block of type PA_MEMBLOCK_MEMPOOL or PA_MEMBLOCK_APPENDED, depending on the size */ |