Please don't send me to msdn, I tried this.
Maybe my English is too bad, but I did not find the answers I looked for.
I have a main thread, that starts a thread to read from file into an object, and another one, that displays the object, both of them should be killable from the main thread.
I know, a thread proc should be global and gets a thread structure with pointers to the datas, that shall be changed.
Questions:
Where do I put the synchronisation object, into tha object, into this structures, into the WindowObject, global anywhere else?
Who should destroy the thread structures for a thread, the thread itself, any other function?
How can I get to know, whether a thread had finished or is working? If CEvent is best, where to put this?
Maybe a Application has a possibility to start lots of threads, maybe readfile threads. If the user wishes to end all of them are to be killed before end the application.
Where are the sync objectes to be put, if I want to do this?
Thank you very much
Greetings Andreas
Maybe my English is too bad, but I did not find the answers I looked for.
I have a main thread, that starts a thread to read from file into an object, and another one, that displays the object, both of them should be killable from the main thread.
I know, a thread proc should be global and gets a thread structure with pointers to the datas, that shall be changed.
Questions:
Where do I put the synchronisation object, into tha object, into this structures, into the WindowObject, global anywhere else?
Who should destroy the thread structures for a thread, the thread itself, any other function?
How can I get to know, whether a thread had finished or is working? If CEvent is best, where to put this?
Maybe a Application has a possibility to start lots of threads, maybe readfile threads. If the user wishes to end all of them are to be killed before end the application.
Where are the sync objectes to be put, if I want to do this?
Thank you very much
Greetings Andreas