283ce280f8
platforms and a hideous anachronism. On NetBSD-current/i386 and amd64, at least, I can say that this package works very well. If you have issues with the audio skipping and are running NetBSD 4.99.x, try updating to rev. 1.241 of sys/dev/audio.c; the changes to audio_poll() and the pause attribute handling (in large part thanks to help from jakemsr@openbsd.org) are important for proper functioning of jack (though you may find it works regardless, depending upon your audio driver, how demanding your "workload" is, etc.). I will submit a pullup request for this change for NetBSD 4 as well. JACK now supports both our native audio API and OSS--I recommend trying both.
24 lines
519 B
C
24 lines
519 B
C
/* $NetBSD: atomicity.h,v 1.1 2008/07/31 03:58:05 bjs Exp $ */
|
|
|
|
#ifndef _NETBSD_ATOMICITY_H
|
|
#define _NETBSD_ATOMICITY_H 1
|
|
|
|
#include <sys/atomic.h>
|
|
|
|
typedef unsigned int _Atomic_word;
|
|
|
|
static inline _Atomic_word
|
|
__attribute__ ((__unused__))
|
|
__exchange_and_add(volatile _Atomic_word* __mem, int __val)
|
|
{
|
|
return atomic_add_int_nv(__mem, __val);
|
|
}
|
|
|
|
static inline void
|
|
__attribute__ ((__unused__))
|
|
__atomic_add(volatile _Atomic_word* __mem, int __val)
|
|
{
|
|
atomic_add_int(__mem, __val);
|
|
}
|
|
|
|
#endif /* atomicity.h */
|