I'm developing a Firefox extension that uses PyXPCOM to run a process. I would like to have a progress meter that is shown when the process is started and gives feedback to the user.
In the javascript I have called the Thread Manager to run the process in Python:
var threadManager = Components.classes["@mozilla.org/thread-manager;1"].getService();
var background = threadManager.newThread(0);
background.dispatch(obj, background.DISPATCH_NORMAL);
so I wonder whether there is a way to check when the thread starts its job and when it finishes. This helps me to control my progress meter in javascript!
If anyone has better idea in implementing the progress meter, please let me know :)
Thanks