On 09/15/14 21:01, Jim Starkey wrote:
> Has anyone given any thought to replacing lock manager semaphores with 
> interlocked compare-and-swap based synchronization objects?  Gcc and 
> Visual Studio each support interlocked CAS as intrinsics, so the 
> semantics if not the syntax are portable.  CAS plus Linux futexes are 
> less troublesome than System V semaphones and vast more efficient than 
> pthread mutexes, though portability to non-Linux systems is certainly 
> a problem.

Yes, I have such a plan. First of all it's needed for Android port - 
with freebsd-based libc Android does not support process shared pthread 
mutexes & cond vars (BTW, same for System V semaphones). And when I have 
that working it will be certainly logical to use it on linux too.


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to