1. Threading Manager plus Demo (soon available)

Hello again,


I'm happy to announce that besides finally in the final stages of my
really nasty flu i've managed to complete my Threading Manager for
managing threads in a Windows application (should be archived soon).
A few simple procedure calls allows the user interface to function
normally even though several background threads perform very long
time consuming operations.
There's no limit to the number of threads that can be started, and
the structure of the code is fairly simple and always the same.
In other words, once you've created one thread you'll know how to
create any number of threads in any application.  You can also choose
the length of the time slice for each thread individually although
one value seems to work pretty well for any number of threads
(0.1 seconds).

In addition, you can prevent the user from exiting the program
prematurely before all of (for example) a file is saved.  Once the
file is saved, the user is then allowed to exit the program.

I've actually used a similar technique in a calculator program where
the user can initiate several very long calculations and there's no need
to wait until one is complete before the use of the mouse returns.
The user is free to start new threads, move the window, click objects
or whatever is normal for gui of the application while one or more background
threads handle whatever processing is needed.

The included demo also has a fancy Marquee control that shows if
there is still one or more pending operations to be completed.

If there's any difference between this and a 'real' thread i'd like
to see it, at least from a software point of view :)



Take care,
Al

And, good luck with your Euphoria programming!

My bumper sticker: "I brake for LED's"

new topic     » topic index » view message » categorize

2. Re: Threading Manager plus Demo (soon available)

> If there's any difference between this and a 'real' thread i'd like
> to see it, at least from a software point of view :)

This is exactly what I need to put the finishing touches on my Backup
Utility for work. I've been having issues with constantly calling
copyFileEx() and not getting the window to update properly. Plus, I
want to be able to calculate data transfer rates and estimated
completion time.

Keep us up to date, I will definitely test the hell out of this library!

~Greg

new topic     » goto parent     » topic index » view message » categorize

3. Re: Threading Manager plus Demo (soon available)

Al,

Can you terminate a thread while it's running?

Jonas Temple
http://www.yhti.net/~jktemple

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu