boost-thread
c++ boost::thread execute code on main thread?
Is it possible, after calling a boost::thread running some instructions, to come back to main thread ?[详细]
2023-03-07 01:43 分类:问答Can mutex implementations be interchanged (independently of the thread implementation)
Do all mutex implementations ultimately call the same basic system/hardware calls - meaning that they can be interchanged?[详细]
2023-03-06 05:12 分类:问答c++ Boost Multithread Running Slow when two threads read file and tokenize the CSV File
I have two functions, it used to work for me, I did some changes in the codes but I don\'t know what happened. When I executed those functions as multi-threads, the CPU is 10-30%, and it is so slow. I[详细]
2023-03-05 16:21 分类:问答Why is destructor of boost::thread detaching joinable thread instead of calling terminate() as standard suggests?
According to the draft C++0x standard, this code: void simplethread() { boost::thread t(someLongRunningFunction);[详细]
2023-03-02 06:00 分类:问答C++: Mutex and deallocation
I am writing a small program as part of a University course. In this program, I have a global Boost Mutex which helps me to coordinate two threads.[详细]
2023-03-02 03:43 分类:问答boost::thread_resource_error when more than 32705 threads
I\'m implementing a message passing algorithm.The messages propagate through the nodes of the graph, blocking until they have have received enough information (from other neighbours) to send a message[详细]
2023-02-28 14:28 分类:问答How to pass an argument to boost::thread?
thread_ = boost::thread( boost::function< void (void)>( boost::bind( &clientTCP::run , this ) ) );[详细]
2023-02-27 02:20 分类:问答Condition variables
I noticed that when I\'m performing a wait operation on a condition variable, it immediately returns. The consequence is that, when executing the following dummy code, 100% of one CPU is being used in[详细]
2023-02-26 10:08 分类:问答Why Intel TBB didn't provide conditional variable like boost?
Like conditional signal mechanism, I want one task to wait until some signal is received or some variable becomes true.[详细]
2023-02-24 19:40 分类:问答Why boost does not create a thread in such case (C2248) and how to create it?
So I have code like: using namespace boost::asio::ip; using namespace std; void request_response_loop(boost::asio::ip::tcp::socket& socket)[详细]
2023-02-24 06:25 分类:问答