Thread Proc for an instancable class?

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-02T02:14:34Z Indexed on 2010/06/02 2:23 UTC
Read the original article Hit count: 336

Filed under:
|
|

Basically I have a class and it is instincable (not static). Basically I want the class to be able to generate its own threads and manage its own stuff. I don't want to make a global callback for each instance I make, this doesnt seem clean and proper to me. What is the proper way of doing what I want. If I try to pass the threadproc to CreateThread and it is the proc from a class instance the compiler says I cannot do this. What is the best way of achieving what I want? Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c