tfTaskIdToIndex

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfTaskIdToIndex (ttUserGenericUnionPtr taskIdPtr);


Function Description

This function finds the slot within the task array corresponding to the task ID. If no slot is found for the task ID, this function will allocate one (if there is room), store the task ID, and create an event.


Parameters

  • taskIdPtr
    A pointer to the ID of the task to find the index for.


Returns

  • < TM_NUMTSK
    Success.
  • >= TM_NUMTSK
    Task ID not found.


Table of Contents >> Programmer's Reference