Hello,
I am desperately trying to find out how to do a threading in C++. Now, I have found out about CreateThread and ActiveObjects way of creating threads; however I don't know how to user either of them for my application.
I have a function in C++ that I want to call (says funcX()) from CallerA. Now, what i want to do is to create a thread (from inside funcX()) which does some function (funcY()) forever. Once this thread is created, I want to return to the CallerA, whilst leaving the thread running function funcY().
How can I do this without terminating funcY() when I return to the CallerA?
Really need some help with this, appreciate any comments.
neoRAGE.
I am desperately trying to find out how to do a threading in C++. Now, I have found out about CreateThread and ActiveObjects way of creating threads; however I don't know how to user either of them for my application.
I have a function in C++ that I want to call (says funcX()) from CallerA. Now, what i want to do is to create a thread (from inside funcX()) which does some function (funcY()) forever. Once this thread is created, I want to return to the CallerA, whilst leaving the thread running function funcY().
How can I do this without terminating funcY() when I return to the CallerA?
Really need some help with this, appreciate any comments.
neoRAGE.