Determines whether an acquire-mode AIM should shut down. Since an acquire-mode AIM is granted a dedicated execution thread, it needs to periodically verify whether it should shut down.
int clTimeToStop()
Integer.
Returns 1 for shut down, and 0 if continue to run.
// in clAcquire
...
while (clTimeToStop() != 1)
{
// do something to gather data in
// a non-blocking fashion
// when you have data, do something
// with it, such as making a route_*
// call to SFM.
// Then, go back up to check if
// it should shut down or not
}
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |