c++ - calling Beginwaitcursor function from worker thread in MFC -


can me in understanding worker threads in vc++(mfc)? following workerthread function

uint threadfunc(lpvoid pparam) { // initialization... etc..  afxgetapp()->beginwaitcursor();  ... .. /// operations  afxgetapp()->end waitcursor();  } 

is okay call waitcursor() functions worker thread?

the documentation available beginwaitcursor , endwaitcursor make no mention of issues related threading.

the 1 thing mentioned,

the actions of beginwaitcursor not effective outside of single message handler other actions, such onsetcursor handling, change cursor.

other threads can change cursor while worker thread working.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -