08-05-2005 12:39 AM
08-07-2005 01:15 PM
Thank you Ray and Caroline,
I'm still confused...
Let's take this example:
TSfunc1()
{
func1()
func2()
08-07-2005 01:43 PM
TSfunc1()
{
func1()
func2()
}
TSfunc2()
{
func1()
func2()
func3()
}
Now, I can go 2 different ways:
a) I can handle the termination inside the func1() and func2() etc.... This way there will be no termination possibilities outside those functions.
b) I can handle the termination in the TSfunc1() and TSfunc2(). In this case, in order to terminate within func1() and func2(), I must set up some globals. I have done it this way and it works fine!. However, using globals is a problem because you must maintain them.
QUESTIONS:
1. Am I right in my view of using the Termination process?
2. Which method is more efficient in your openion?
3, When you talked about static veriables. Where exactly did you intend to use them? They are valid only in the procedure where you defined them, and they keep there value until the next time you call this procedure, right? so, I don't see how I can benifit from that.
Thanks again,
Rafi
12-21-2006 08:35 AM
12-21-2006 09:01 AM
Hi Rafi2003,
All you need to do is call TS_ExecutionGetTerminationMonitorStatus (exec, NULL, MON, CA_DEFAULT_VAL, &term); in your lower level functions.
You could initialise and close the TerminationMonitor at the higher level eg in TSfunc1, 2 and 3 providing you pass the exec handle down to the lower level.
I hope I have understood your problem correctly.
Regards
Ray Farmer