<< Previous | Next >>

loophead

void loophead( void );

Description

This function should be called within the main loop in a program. It is necessary for proper single-user cofunction abandonment handling.

When two costatements are requesting access to a single-user cofunction, the first request is honored and the second request is held. When loophead() notices that the first caller is not being called each time around the loop, it cancels the request, calls the abandonment code and allows the second caller in.

See Samples\Cofunc\Cofaband.c for sample code showing abandonment handling.

Library

COFUNC.LIB


Dynamic C Functions << Previous | Next >> rabbit.com