Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is a non-thread function running ?
#1
I would appreciate any idea for a smart way to find out if a non-thread function is running. I understand that:

1. IsFunctionRunning is monitoring only thread – functions.
2.I could use inside the non-thread function a global variable, which gets some specific value depending the status of the function, but I do not like it.


Many thanks in advance.
#2
Only global variable can be used.
#3
Function IsFunctionRunning2 and class CFunctionCounter.


Attached Files
.qml   CFunctionCounter.qml (Size: 1.37 KB / Downloads: 296)
#4
Indeed, it could not be smarter!

One minor comment : Obviously, it does not work if the function has the same name as a QM folder. Thus, the function name should be unique in QM.

Many thanks, Regards.


Forum Jump:


Users browsing this thread: 2 Guest(s)