Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-09-09 Thread Michael Ost
I found some definitions in boost/detail/atomic_count.hpp, with gcc, win32, etc. flavors. I still haven't figured out how they are used! But at least there is source to play with. - mo On Mon, 2003-09-08 at 22:13, Jack O'Quin wrote: Michael Ost [EMAIL PROTECTED] writes: I know this message

Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-09-09 Thread Jack O'Quin
Michael Ost [EMAIL PROTECTED] writes: I found some definitions in boost/detail/atomic_count.hpp, with gcc, win32, etc. flavors. I still haven't figured out how they are used! But at least there is source to play with. Excellent! Most of this is C++ language bindings for the low-level

Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-09-08 Thread Michael Ost
I know this message is ancient, but if you are still looking for atomic primitives I just ran across some in the boost code base. I can't figure out how to use them (!) but perhaps you can? Boost, if you don't know, seems to be kind of a proving ground for the C++ working group. Lots of libraries

Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-09-08 Thread Jack O'Quin
Michael Ost [EMAIL PROTECTED] writes: I know this message is ancient, but if you are still looking for atomic primitives I just ran across some in the boost code base. I can't figure out how to use them (!) but perhaps you can? Boost, if you don't know, seems to be kind of a proving ground

Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-08-22 Thread Ingo Oeser
Hi Jack, On Wed, Aug 20, 2003 at 10:35:55PM -0500, Jack O'Quin wrote: Which version of atomicity.h do you use? I see more than one in my Debian woody system. I always copy the right one for the arch I wish to support. To compile my application for all supported platforms, I would need to

Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-08-20 Thread Jack O'Quin
Ingo Oeser [EMAIL PROTECTED] writes: (*) glibc seems to have a good set of functions internally AFAICT, these are for the library's own use, not part of the supported external interface. I'll investigate further. These I use myself and I can recommend them, as long as

Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-08-20 Thread Ingo Oeser
Hi Jack, On Wed, Aug 20, 2003 at 02:05:27PM -0500, Jack O'Quin wrote: Ingo Oeser [EMAIL PROTECTED] writes: (*) glibc seems to have a good set of functions internally These I use myself and I can recommend them, as long as you use GCC or a compatible compiler. They are made for user

Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-08-20 Thread Jack O'Quin
Ingo Oeser [EMAIL PROTECTED] writes: I copy the relevant atomicity.h, since glibc gives me no other choice. They are trivial anyway. Which version of atomicity.h do you use? I see more than one in my Debian woody system. To compile my application for all supported platforms, I would need to

Re: [linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-08-19 Thread Ingo Oeser
Hi Jack, On Sun, Aug 17, 2003 at 12:56:09PM -0500, Jack O'Quin wrote: All I've found so far are... (*) kernel implementations of asm/atomic.h and asm/system.h. Don't use these, if glibc supports your architecture. But, I prefer to avoid using kernel header files in application

[linux-audio-dev] userspace atomic primitives for multithread and SMP applications?

2003-08-18 Thread Jack O'Quin
I am looking for a good set of portable, supported atomic.h-style primitives for userspace applications. I am not especially interested in the low-level functions defined in asm/atomic.h. I really want something more powerful like the kernel's compare_and_swap(), cmpxchg(), test_and_set(),