Top "Stdthread" questions

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

Thread pooling in C++11

Relevant questions: About C++11: C++11: std::thread pooled? Will async(launch::async) in C++11 make thread pools obsolete for avoiding …

c++ multithreading c++11 threadpool stdthread
How to check if a std::thread is still running?

How can I check if a std::thread is still running (in a platform independent way)? It lacks a timed_…

c++ multithreading c++11 stdthread
When should I use std::thread::detach?

Sometime I have to use std::thread to speed up my application. I also know join() waits until a thread …

c++ c++11 stdthread
What happens to a detached thread when main() exits?

Assume I'm starting a std::thread and then detach() it, so the thread continues executing even though the std::thread …

c++ multithreading c++11 exit stdthread
I want to kill a std::thread using its thread object?

Possible Duplicate: C++0x thread interruption I am trying to kill/stop a c++ std::thread by using its thread …

c++ multithreading c++11 std stdthread
Portable way of setting std::thread priority in C++11

What is the correct way in the post C++11 world for setting the priority of an instance of std::thread …

c++ c++11 portability stdthread thread-priority
Telling an std::thread to kill/stop itself when a condition is met

Say I have a worker thread tWorker, which is initialized when Boss is constructed and tells it to do work(), …

c++ multithreading c++11 stdthread
C++11: std::thread pooled?

In C++03 I used pthread with a self-built thread pool that always kept a couple of threads running (since pthread_…

c++ multithreading c++11 stdthread
undefined reference to `pthread_create' Error when making C++11 application with ASIO and std::thread

I set Eclipse (Actually Xilinx SDK but based on Eclipse), and g++4.9.2, to compile a project which uses standalone ASIO …

c++ c++11 pthreads stdthread
Passing object by reference to std::thread in C++11

Why can't you pass an object by reference when creating a std::thread ? For example the following snippit gives a …

c++ multithreading c++11 pass-by-reference stdthread