Trigger Event on Multithread
Hello, I want to use another thread to listen to other device's socket data receiving,the thread may wait for the data to receive. I tried using Rama's Multi-Threading: How_to_Create_Threads_in_UE4 to do some easy calculations, and it succeed. Could any one give me some suggestion on how to call customized event on thread?
asked Sep 30 '16 at 05:42 AM in C++ Programming
You can't communicate with UObjects from diffrent thread so you can't make it runnable. You could try using delegates but i'm not sure if this gonna work. If you trying to communicate with HTTP then use HTTP module APIs insted, it already have implemented multithreading, looking on source it does checking via ticking.
Ticking is not bad as it might look CPUs now days is very very fast and if you check if result varable is accessable as delivered form other thread it technically nothing for it it won't take even 1ms
answered Sep 30 '16 at 10:54 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here