I think I see what's wrong. The thread goes out of scope, so it is closed.
Maybe I am thinking wrong, but try making the thread object a class object instead of a function object.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 10 of 10
Thread: Multithreaded consumerThreaded View
|
Click Here to Expand Forum to Full Width |