clSystem  erm

Chapter 2: Bridged Functions

clTimeToStop

Description

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.

Syntax

int clTimeToStop()

Return value

Integer.

Returns 1 for shut down, and 0 if continue to run.

Examples

Example 21

// 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. erm

View this book as PDF