How to use the FRunnable?
I mean if I implement a thread class by FRunnable, how can I start up the thread? Should I call the Run() function or do some other things? The code demo is as follows:
Hi To run your thread you have to use
This call gives you a WorkerThread handle which could be used to control your thread. You can Suspend, Kill or wait for completion of newly created thread.
Run and Stop functions of FRunnable will be called outside. "Run" should process things you want to do in a separate thread. "Stop" called after "Run" ends or when you killing this thread. You can use single class to manage multithreading and process your data. To do this create a function in your class and run something like this:
Note that you dave to 'delete' thread handle if it was created successfully.
answered Apr 12 '17 at 12:16 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here