Answer by Roberto Guimaares for GCC Atomic Builtins instead of pthread?
atomic builtins make sense if you want to improve performance. Builtins allow you to minimize contention caused by the serialization of mutexes. When you use mutexes and create a critical session you...
View ArticleAnswer by CesarB for GCC Atomic Builtins instead of pthread?
If you are already using pthread, and the pthread lock functions already do what you want, it is best to use the pthread lock functions.These atomic builtins are just the building blocks for...
View ArticleAnswer by Chris Arguin for GCC Atomic Builtins instead of pthread?
No. The GCC built-ins probably make good sense to the guys who write operating systems, libc, and maybe pthreads itself, but for your average application there is no reason not to use the pthreads...
View ArticleAnswer by anon for GCC Atomic Builtins instead of pthread?
Is this a good idea?Not if you ever intend to compile the code with something other than gcc. Is pthreads causing you any specific problems?
View ArticleAnswer by joe for GCC Atomic Builtins instead of pthread?
C Extensionshttp://gcc.gnu.org/ml/libstdc++/2006-06/msg00089.htmlAtomic+Builtinshttp://sources.redhat.com/ml/libc-alpha/2005-06/msg00132.htmlhttp://www.redi.uklinux.net/doc/c++/shared_ptr.html
View ArticleGCC Atomic Builtins instead of pthread?
I've found following article: Use GCC-provided atomic lock operations to replace pthread_mutex_lock functionsIt refers to GCC Atomic Builtins.What the article suggest, is to use GCC atomic builtins...
View Article
More Pages to Explore .....