python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Sharing variables between threads in C++ on Windows
I need to communicate with robot via sockets (this part works) and I'd like to make a watchdog to monitor if the robot is ready or not.
The communication handling is in while loop until the robot ends...
Oro
Votes: 0
Answers: 0
Last notify_all isn't triggering last conditional_variable.wait
What I'm Trying To Do
Hi, I have two types of threads the main one and the workers where the workers are equal to the number of cores on the CPU, what I'm trying to do is when the main thread needs to...
Pedro S
Votes: 0
Answers: 1
Is it theroretically possible to replace all mutexes with futures?
For instance: How would a programmer design a system that requires many threads to read and write concurrently to shared data using the future-promise paradigm without using mutexes or other locking m...
deltav
Votes: 0
Answers: 1
Data race about map::operator[]
Is there any potential problem in this code snippet?
#include <mutex>
#include <map>
#include <vector>
#include <thread>
constexpr int FOO_NUM = 5;
int main()
{
std::map<i...
John
Votes: 0
Answers: 2