Run code on thread termination
On 12/12/2017 at 02:45, xxxxxxxx wrote:
Cinema 4D Version: R18
Platform: Windows ;
Language(s) : C++ ;
I need to run some code as soon as a C4DThread has finished running.
Is there a way to do that ? (a callback maybe)
Thank you for your time.
On 13/12/2017 at 02:52, xxxxxxxx wrote:
do you want to inform other parts of your plugin that your thread has finished? The typical way to do this is to send a custom core message from that thread. This custom core message can then be caught in a dialog or MessageData plugin. You find an example in the C4DThread Manual. See also Core Messages Manual.
On 14/12/2017 at 03:34, xxxxxxxx wrote:
Thank you very much Sebastian !