diff options
author | Joe Marcus Clarke <marcus@FreeBSD.org> | 2008-02-25 19:12:21 +0000 |
---|---|---|
committer | Joe Marcus Clarke <marcus@FreeBSD.org> | 2008-02-25 19:12:21 +0000 |
commit | 8debf93b7f36b7df4ce4662ab382e2bcd483a9ee (patch) | |
tree | 3ccd0491f74e0209cfeae2f8968146d8d1c432a8 /audio | |
parent | cb77c288589fa768ca68370625623a44aa32aa93 (diff) | |
download | ports-8debf93b7f36b7df4ce4662ab382e2bcd483a9ee.tar.gz ports-8debf93b7f36b7df4ce4662ab382e2bcd483a9ee.zip |
Notes
Diffstat (limited to 'audio')
-rw-r--r-- | audio/pulseaudio/Makefile | 3 | ||||
-rw-r--r-- | audio/pulseaudio/distinfo | 6 | ||||
-rw-r--r-- | audio/pulseaudio/files/patch-src_pulsecore_atomic.h | 26 |
3 files changed, 11 insertions, 24 deletions
diff --git a/audio/pulseaudio/Makefile b/audio/pulseaudio/Makefile index 57969e096595..c82ae6910892 100644 --- a/audio/pulseaudio/Makefile +++ b/audio/pulseaudio/Makefile @@ -7,8 +7,7 @@ # PORTNAME= pulseaudio -PORTVERSION= 0.9.8 -PORTREVISION= 1 +PORTVERSION= 0.9.9 CATEGORIES= audio MASTER_SITES= http://0pointer.de/lennart/projects/${PORTNAME}/ diff --git a/audio/pulseaudio/distinfo b/audio/pulseaudio/distinfo index d9a15d351e7b..aa4f5aff7cbf 100644 --- a/audio/pulseaudio/distinfo +++ b/audio/pulseaudio/distinfo @@ -1,3 +1,3 @@ -MD5 (pulseaudio-0.9.8.tar.gz) = 184a41d5947e583d395f0a2541525fc2 -SHA256 (pulseaudio-0.9.8.tar.gz) = 359891878e19d33b15f6a97eaec9b2f7d85dab7c1e1d6723537b80d36aa36858 -SIZE (pulseaudio-0.9.8.tar.gz) = 1089681 +MD5 (pulseaudio-0.9.9.tar.gz) = 8fa6f7a9611bb194d94311764022b197 +SHA256 (pulseaudio-0.9.9.tar.gz) = 9caab8f9be8a371aea7cd0241aab7ffd4b1043fbc4a8f62736faea4229f11f7d +SIZE (pulseaudio-0.9.9.tar.gz) = 1063448 diff --git a/audio/pulseaudio/files/patch-src_pulsecore_atomic.h b/audio/pulseaudio/files/patch-src_pulsecore_atomic.h index 8ba13dad22e0..e0d268727181 100644 --- a/audio/pulseaudio/files/patch-src_pulsecore_atomic.h +++ b/audio/pulseaudio/files/patch-src_pulsecore_atomic.h @@ -1,6 +1,6 @@ ---- src/pulsecore/atomic.h.orig 2007-10-28 15:13:53.000000000 -0400 -+++ src/pulsecore/atomic.h 2008-01-01 17:20:19.000000000 -0500 -@@ -106,6 +106,88 @@ static inline int pa_atomic_ptr_cmpxchg( +--- src/pulsecore/atomic.h.orig 2008-01-23 19:44:20.000000000 -0500 ++++ src/pulsecore/atomic.h 2008-02-25 14:02:59.000000000 -0500 +@@ -106,6 +106,76 @@ static inline int pa_atomic_ptr_cmpxchg( return __sync_bool_compare_and_swap(&a->value, (long) old_p, (long) new_p); } @@ -25,31 +25,19 @@ +} + +static inline int pa_atomic_add(pa_atomic_t *a, int i) { -+ int r; -+ r = pa_atomic_load(a); -+ atomic_add_int((unsigned int *) &a->value, i); -+ return r; ++ return atomic_fetchadd_int((unsigned int *) &a->value, i); +} + +static inline int pa_atomic_sub(pa_atomic_t *a, int i) { -+ int r; -+ r = pa_atomic_load(a); -+ atomic_subtract_int((unsigned int *) &a->value, i); -+ return r; ++ return atomic_fetchadd_int((unsigned int *) &a->value, -(i)); +} + +static inline int pa_atomic_inc(pa_atomic_t *a) { -+ int r; -+ r = pa_atomic_load(a); -+ atomic_add_int((unsigned int *) &a->value, 1); -+ return r; ++ return atomic_fetchadd_int((unsigned int *) &a->value, 1); +} + +static inline int pa_atomic_dec(pa_atomic_t *a) { -+ int r; -+ r = pa_atomic_load(a); -+ atomic_subtract_int((unsigned int *) &a->value, 1); -+ return r; ++ return atomic_fetchadd_int((unsigned int *) &a->value, -1); +} + +static inline int pa_atomic_cmpxchg(pa_atomic_t *a, int old_i, int new_i) { |