Atomic operations from user-space?

Alex Bennee <[email protected]> Fri, 02 Apr 2004 16:41:04 +0100
Newsgroups gmane.linux.ports.sh.devel,gmane.linux.ports.sh.general
Organization Hackers Inc
Message-ID <[email protected]>
Hi,

I'm trying to debug some mutex code (or more correctly work around some
of glibc's mutex breakages with real-time scheduling). However I'd like
to do some reference counting and I can't think of a good way to do it
in user space.

glib-2.4.0 seems to promise atomic operations but a) I can't get it to
build for sh and b) looking at the code it seems to use mutex's for
arch's it doesn't explicitly support.

Anyone got any ideas?

-- 
Alex, homepage: http://www.bennee.com/~alex/
This is the tomorrow you worried about yesterday.  And now you know why.



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click