Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
is a function currently running
#1
is there a better way of finding out if a function is running other than using "EnumQmThreads"?
that just seems inefficient. i have the function name

ive searched both help and forum but i cant seem to find out if it's running.


thanks.
An old blog on QM coding and automation.

The Macro Hook
#2
Why it is inefficient?

You can do like this:

Function1:
int+ I_am_running
I_am_running+1
...
I_am_running-1

Function2:
int+ I_am_running
if(I_am_running>0) out "Function1 is running"


This is simplified. To ensure that I_am_running-1 is always called, use atend or class with destructor.
#3
DANG IT DANG IT DANG IT!!!

I got all hooked into thinking "ok, I got this thing running right now but how do I check if it's running?"

I've even USED that global variable thing! Man, I'm glad it's Friday!

thanks.
An old blog on QM coding and automation.

The Macro Hook


Forum Jump:


Users browsing this thread: 1 Guest(s)