Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Keeping a Win32::GUI interface responsive while executing other code?

by ruoso (Curate)
on Sep 28, 2006 at 09:25 UTC ( #575312=note: print w/replies, xml ) Need Help??


in reply to Keeping a Win32::GUI interface responsive while executing other code?

The keyword you want to search for is "Worker Thread". Basically it's what has been replied before, but you don't need to have a permanent thread for doing this jobs (as you may need to do more than one job at a time)...

The idea, basically, is to start a "Worker Thread" for every potentially-time-consuming task and release the GUI thread (the main thread) immediatly. You probably wants to have a busy switch so you can tell your user that the program is doing something (like having a different cursor).

daniel
  • Comment on Re: Keeping a Win32::GUI interface responsive while executing other code?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://575312]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2020-12-04 14:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (58 votes). Check out past polls.

    Notices?