tfTaskInit

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


void tfTaskInit (void);


Function Description

This function must be called by the user prior to calling tfStartTreck() and prior to running any Treck task when using one of the Treck counting semaphore implementations. Up to TM_NUMEVT events are created by calling the OS create event routine, their values stored in our local event array, and each entry in the local event array is marked as unused (TM_EVENT_INVALID).

This function call is only needed when using a Treck counting semaphore implementation instead of an Operating System's native counting semaphore implementation.



Table of Contents >> Programmer's Reference