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)
C++ multithreaded Winsock server doesn't behave like expected
I am trying to create a simple multithreaded server in C++ for Windows using Winsock. I am facing a problem that I do not know how to solve. I expect my server to be able to serve multiple clients at ...
John Doe
Votes: 0
Answers: 0
Parallel construction/instantiation in c++
I have a class that has many setter methods.
Each subsequent setter method requires the data that has been set by the preceding setter method. i.e. if setA() has set the variable _a in the class, then...
Yasiru Lelwala
Votes: 0
Answers: 0
How to join a number of threads which don't stop in C++
In C++ I have an std::vector of threads, each running a function running forever [while(true)].
I'm joining them in a for loop:
for (auto& thread : threads)
{
thread.join();
}
When the progr...
Omer Kawaz
Votes: 0
Answers: 2
no matching function for call to <unresolved overloaded function type>
I can't relate with similar questions. That's my MRE, basically I'd like to overload fun with a version accepting a template reference. It all works until std::thread enters in the game. It seems I'm ...
Patrizio Bertoni
Votes: 0
Answers: 3