Top "Stdthread" questions

std::thread is a C++11 standard library type which runs a function a new thread

Qt - emit a signal from a c++ thread

I want to emit a signal from a C++ thread (std::thread) in Qt. How can I do it?

c++ qt signals-slots stdthread emit
Non-obvious lifetime issue with std::promise and std::future

This question is very similar to a previous one here: race-condition in pthread_once()? It is essentially the same issue …

c++ c++11 promise stdthread
error: use of deleted function ‘std::thread::thread(const std::thread&)'

The code bellow compiles and works as expected. The structure (class) A derives from std::thread and expands with an …

c++ multithreading stdthread
error: no matching function for call to std::thread

I'm trying to run a function called dcp in a thread, I've to run this function three times independently. So …

c++ multithreading stdthread
Massive CPU load using std::lock (c++11)

My recent efforts to implement a thread/ mutex manager ended up in an 75% CPU load (4 core), while all four running …

c++ c++11 mutex stdthread
How to terminate a std::thread?

I am currently developing a program that needs to download some images from the socket server,and the downloading work …

c++ multithreading c++11 cocos2d-x stdthread
Calling overloaded member functions using std::thread

Is it possible to have overloads for functions that we need to span using threads ? I have a simple class …

c++ c++11 visual-studio-2012 stdthread
Eclipse content assist doesn't recognize std::thread, but compiles correctly

I am running Ubuntu 14.04. Steps I took to reproduce: Create a new C++ project (New -> C++ -> …

c++ eclipse ubuntu eclipse-cdt stdthread
Efficiently waiting for all tasks in a threadpool to finish

I currently have a program with x workers in my threadpool. During the main loop y tasks are assigned to …

c++ multithreading threadpool wait stdthread
A parallel for using std::thread?

I'm new with std::thread and I try to code a parallel_for. I coded the following thing: // parallel_for.…

c++ c++11 parallel-processing std-function stdthread