On Sep 14, 2011, at 3:17 PM, Slava Pestov wrote: > If you run Factor in one thread and your C code in another, then you > should be able to just use pthread mutexes. Use the Factor FFI to bind > to the pthread API, and put a lock inside your struct. Take the lock > when you modify it.
The compiler wouldn't break acquire/release semantics when optimizing around pthread_mutex_* calls, would it? -Joe
smime.p7s
Description: S/MIME cryptographic signature
------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk