RE: Thanks

new topic     » goto parent     » topic index » view thread      » older message » newer message

That's why I've asked Rob in the past about the possibility of threads 
in Eu.  I've got some programs that could really benefit from having 
threads.

I'll keep hoping...

Jonas
Martin Stachon wrote:
> 
> 
> The problem is that Euphoria is not multi-threaded rather than in OS. 
> While we are doing a longer computation  (ie not returning from event 
> handler in win32lib), we cannot call ?GetNextMessage? (forgot the actual 
> 
> function name) and Windows are stacking up events in application queue. 
> But Windows require the application to handle the event. For example, if 
> 
> you move a window, WM_MOVE message is issued, but until your application 
> 
> process the message, the window is not actually moved (the application 
> may say it cannot be moved). The OS could possibly have timeouts for 
> events, and do default processing after timeout, but you would loose a 
> lot of user's actions when high CPU load or application being busy.
> 
> If we had at least two threads, win32lib would set up separate thread 
> just to handle window events, but the way it is we must call doEvents() 
> occasionaly in longer code to handle event queue.
> 
>     Martin
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu