Attempting to use the boost library to create a system wide mutex from the docs I am running visual studio code and compiling my code using msys2-M ...
Attempting to use the boost library to create a system wide mutex from the docs I am running visual studio code and compiling my code using msys2-M ...
I'm trying to turn a code from a single thread to a multi thread(example, create 6 threads instead of 1) while making sure they all start and finish w ...
Since I have recently started coding multi threaded programs this might be a stupid question. I found out about the awesome mutex and condition variab ...
What is the real difference between std::mutex and boost::mutex? Which one is faster in terms of implementation and compilation? Are both of them port ...
In our project we are using some network library with tricky rules to obey. One of them is that we should manually create some int identity that shoul ...
Is it possible to use mutexes on parts of a class ? Like : and then use the right mutex to perform the right operation. I know this is technically ...
I am bulding a PCL based application, for which use the default PCL grabber code for velodyne which can seen here. When i build my application in Deb ...
I implemented a Logger, so it can be used like ostream. e.g, if someone wants to write to the log - he can do something like this: The log will be ...
I am wrote on C++ multithread TCP server, for synchronization using boost:scoped_lock After connecting to server client freezes. in gdb i saw more t ...
I want to use a boost::mutex for the function add of my struct Cell. Here is the definition of my struct in Detector.h class Detector { private: ...
There are two threads (Call them T1 and T2) that sync with each other by boost condition variable and mutex like: Let's say I can gugarntee that th ...
I have a class that contains a boost::mutex as a private member. It becomes locked when you call one of its public functions and unlocks when the func ...
I'm very new to boost, and just trying to understand a small part of it - the interprocess mutex. AFAIU, there's a robust mutex emulation in the cros ...
I have implemented a ReadLock like following: In my myClass.h In myClass.cpp: The code works in VS2010 but failed with GCC4.0. The compiler is ...
I am wondering how I can parallelise for loop below in a secure way. I found some possible solution like this . However I am limited to use OpenMP ver ...
I would like to know if there would be any issue if I hold two boost::scoped_locks at the same time. The locks are locking different mutexes. Consider ...
I have a std::unordered_map which is subjected to a very read-heavy workload from multiple threads. I could use a std::mutex for synchronization, but ...
I would like to lock the keys/index in another map like this: However, I am getting the following error: It seems to work with std::vector, but ...
I'm using boost 1.54.0 and Visual Studio 2010. For the code: About half the time I get the following (with varying thread ids and execution order, ...
I would like to start multiple instances of a function which performs some calculations. The function takes a class object and as the class includes a ...