¡@

Home 

c++ Programming Glossary: mutexes

Volatile in C++11

http://stackoverflow.com/questions/12878344/volatile-in-c11

access to variables ie not using std atomic s or proper mutexes yields undefined behavior. So it's perfectly fine for a C 11..

does presence of mutex help getting rid of volatile key word ?

http://stackoverflow.com/questions/1616093/does-presence-of-mutex-help-getting-rid-of-volatile-key-word

optimize or take 'short cuts'. memory barriers supplied by mutexes locks etc as quoted from Herb Sutter in another answer are for..

C++: std::string in a multi-threaded program

http://stackoverflow.com/questions/1661154/c-stdstring-in-a-multi-threaded-program

at least with std vector for example you can simply use mutexes to protect access to the vector. With an std string implementation..

C++0x memory model and speculative loads/stores

http://stackoverflow.com/questions/2001913/c0x-memory-model-and-speculative-loads-stores

data must be via some synchronization mechanism such as mutexes or operations on atomic variables well it is possible to operate..

ReleaseSemaphore does not release the semaphore

http://stackoverflow.com/questions/2375132/releasesemaphore-does-not-release-the-semaphore

critical sections are much faster than semaphores and mutexes. they're also easier to understand in most cases imo . share..

What exactly is a reentrant function?

http://stackoverflow.com/questions/2799023/what-exactly-is-a-reentrant-function

p will be done atomically using a recursive mutex not all mutexes are recursive struct MyStruct mutex m recursive mutex size_t.. is not thread safe Thus the user is responsible to use mutexes to use an object shared between threads. The objects from the.. safe code is recursive safe This means using recursive mutexes if you believe the same resource can be used twice by the same..

Sub-millisecond precision timing in C or C++

http://stackoverflow.com/questions/2904887/sub-millisecond-precision-timing-in-c-or-c

for non realtime OSes . No memory allocation no sockets no mutexes nada. Use the RDTSC to spin in a while loop waiting for your..

What kinds of optimizations does 'volatile' prevent in C++?

http://stackoverflow.com/questions/3604569/what-kinds-of-optimizations-does-volatile-prevent-in-c

written to it and when no other memory barriers like mutexes as used for multi threaded programs are present. share improve..

What is The Rule of Three?

http://stackoverflow.com/questions/4172722/what-is-the-rule-of-three

cannot or should not be copied such as file handles or mutexes. In that case simply declare the copy constructor and copy assignment..

Creating a counter that stays synchronized across MPI processes

http://stackoverflow.com/questions/4948788/creating-a-counter-that-stays-synchronized-across-mpi-processes

Once you have a single shared counter working you can make mutexes from those and from that you can implement the dequeue. But..

Mutex example / tutorial?

http://stackoverflow.com/questions/4989451/mutex-example-tutorial

I'm new to multithreading and was trying to understand how mutexes work. Did a lot of Googling and this is the only decent tutorial.. in Windows only where the objects are faster than mutexes and are visible only to the thread which implements it. Otherwise.. some lines of code. There are concepts of recursive mutexes etc but this example was only meant to show you the basic concept...

C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?

http://stackoverflow.com/questions/6319146/c11-introduced-a-standardized-memory-model-what-does-it-mean-and-how-is-it-g

which loads and stores might happen never mind things like mutexes. Of course you can write multi threaded code in practice for.. . The new standard provides high level gadgets like mutexes and condition variables and it also provides low level gadgets.. some serious low level code you should probably stick to mutexes and condition variables. That's what I intend to do. For more..

Unnecessary curly braces in C++?

http://stackoverflow.com/questions/9704083/unnecessary-curly-braces-in-c

destructors it can also be handy to have resources files mutexes whatever automatically released as the scope exits which can..

What are the semantics of a const member function?

http://stackoverflow.com/questions/98705/what-are-the-semantics-of-a-const-member-function

that don't affect the actual observable state such as mutexes you still need to lock the mutex in the const member functions..

How to profile pthread mutex in linux?

http://stackoverflow.com/questions/10852637/how-to-profile-pthread-mutex-in-linux

PS What's the plural of mutex mutexes muteces mutexi muti Mutexes never sounded right to me. c c performance pthreads mutex ..

Locks and Mutexes in C++ [closed]

http://stackoverflow.com/questions/1803887/locks-and-mutexes-in-c

and Mutexes in C closed I have learnt C for a while and still didn't come.. help. c mutex share improve this question Locks and Mutexes are concurrency constructs used to ensure two threads won't..

Should mutexes be mutable?

http://stackoverflow.com/questions/4127333/should-mutexes-be-mutable

value at least to indicate they do not modify the object. Mutexes should not be const it would be a shameless lie to define lock..

how to make an application thread safe?

http://stackoverflow.com/questions/5125241/how-to-make-an-application-thread-safe

data properly protecting from thread unsafe modifications. Mutexes and Locks are very useful but with great power comes great responsibility...

Is Boost IPC any good? [closed]

http://stackoverflow.com/questions/5140312/is-boost-ipc-any-good

right now for boost it's crap. At least on windows. The Mutexes don't use WinAPI instead they create it's own File Based implementation..

Can I force cache coherency on a multicore x86 CPU?

http://stackoverflow.com/questions/558848/can-i-force-cache-coherency-on-a-multicore-x86-cpu

CPUs I'm already aware of and have used Critical Sections Mutexes Events and so on. I'm mostly wondering if there are x86 intrinsics..

C++11 introduced a standardized memory model. What does it mean? And how is it going to affect C++ programming?

http://stackoverflow.com/questions/6319146/c11-introduced-a-standardized-memory-model-what-does-it-mean-and-how-is-it-g

answer is already longer than I intended . So bottom line. Mutexes are great and C 11 standardizes them. But sometimes for performance..