Actually you can use raw futexes if you're prepared to write your own
mutexe.  That doesn't use any thread library.  It's just a system
call.  It's how futex was used originally, and it's still used that
way for some things.
I did check into this, but with this arch (and supposedly many others) there is no decent Futex code, but the standard (not arch specific) code is used and as same can't use monolithic instructions or user-space interrupt disabling, it performs system calls and thus Futexes are not "Fast Usespace" at all but essentially work like inter-process Mutex.
Before jumping to conclusions about speed, try measuring the speed of
pthread_getspecific and pthread_self.
Yep.
At first I'd rather see the code....

-Michael
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to