by me12 » Sun Nov 02, 2014 7:49 am
I have some heavy computation to do (in C++) once a user clicks some html element.
This is how I am doing it at the moment:
User clicks html element -> http request -> custom scheme handler -> redirect from IO to UI thread -> do computation there and return result in callback.
Since this computation can take a long time and blocks the UI thread meanwhile(no window paint event occurs in that time), I need to do it in another thread.
So here is what I want to do:
User clicks html element -> http request -> custom scheme handler -> redirect from IO to my custom thread -> do computation there and return result in callback.
My custom thread would be initialized when CEF starts and runs(waits) in the background for work to do.