-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing header #1
Comments
I think you are right. Maybe when I tested this I had sleep() commented out. Thanks for pointing it out! |
Hi, is there a way to start a thread (already finished) second time without calling pthread_create? Or can the finished thread be restarted? Thanks very much! oh, I find a way:(I am sorry I have no idea about how to format c++ source code) |
@nalisaki this would be better discussed in a different forum, however a threadpool is designed for exactly the sort of work you're asking about. The pool itself is a set of threads available to handle any processing given to the threadpool. You should not be directly accessing threads, instead going through the threadpool object. This object will take care of handing off work to individual threads, and storing returned data in an easily accessible way. |
I was required to add unistd.h to threadpool_test.cpp, not sure if it was just me.
Thanks.
Ubuntu 12.10
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
The text was updated successfully, but these errors were encountered: