boost-thread
Error while excuting a simple boost thread program
Could you tell mw what is the problem with the below boost::thread program #include<iostream> #include<boost/thread/thread.hpp>[详细]
2022-12-30 14:39 分类:问答Using boost locks for RAII access to a semaphore
Suppose I write a C++ semaphore class with an interface that models the boost Lockable concept (i.e. lock(); unlock(); try_lock(); etc.).Is it safe/recommended to use boost locks for RAII access to su[详细]
2022-12-29 02:56 分类:问答Modelling boost::Lockable with semaphore rather than mutex (previously titled: Unlocking a mutex from a different thread)
I\'m using the C++ boost::thread library, which in my case means I\'m using pthreads.Officially, a mutex must be unlocked from the same thread which locks it, and I want the effect of being able to lo[详细]
2022-12-29 02:37 分类:问答killing a separate thread having a socket
I have a separate thread ListenerThread having a socket listening to info broadcasted by some remote server. This is created at the constructor of one class I need to develop.[详细]
2022-12-26 11:46 分类:问答Boost Thread Specific Storage Question (boost/thread/tss.hpp)
The boost threading library has an abstraction for thread specific (local) storage. I have skimmed over the source code and it seems that the TSS functionality can be used in an application with any e[详细]
2022-12-26 07:10 分类:问答Trouble linking libboost libraries to compile sslsniff on RHEL
Trying to build sslsniff on a RHEL 5.2 system here. When compiling sslsniff on RHEL I hit the same errors when using libboost packages (from repositories like rpmforge) and compiling libboost from sou[详细]
2022-12-24 15:37 分类:问答What's pthread in Boost?
I found there are also开发者_开发百科 a pthread in Boost library, is it the same thing as the posix pthread?boost threads(and other stuff like mutexes/locks/condition variables) are implemented on top[详细]
2022-12-23 10:24 分类:问答C++ threaded class design from non-threaded class
I\'m working on a library doing audio encoding/decoding. The encoder shall be able to use multiple cores (i.e. multiple threads, using boost library), if available. What i have right now is a class th[详细]
2022-12-23 02:42 分类:问答Multi-Threaded MPI Process Suddenly Terminating
I\'m writing an MPI program (Visual Studio 2k8 + MSMPI) that uses Boost::thread to spawn two threads per MPI process, and have run into a problem I\'m having trouble tracking down.[详细]
2022-12-22 22:11 分类:问答Does boost::asio::deadline_timer use a thread for each timer?
I have a list of items that I need to update on different intervals. The list can grow to be thousands of items long. Each item could potentially have a different interval. If I create 开发者_运维技巧[详细]
2022-12-22 13:10 分类:问答