Following Rama’s wiki tutorial about FRunnable I did a small thread system.
My trouble is that I’m not so much happy on need to implement a TickCheck to see if the 2nd thread finished the task, and I would like to get a BP Event fired when it completes.
Reading on answers, I’ve seen that BPs just does accepts events fired on the main game thread, so I thought about implement something like this:
I suppose this will work, but my questions are:
1 - Since the Data I’ll need to process is not the same I’ll use when the event is fired do I need pass it as reference?
2 - Do I can use the same method to “Fire” the Event and communicate the result or would be better make different methods to each?
Thank you.