tfKernelSetContext

Jump to: navigation, search

Table of Contents >> Integrating Treck >> Creating a Kernel Interface


#include <trsocket.h>


void tfKernelSetContext (ttUserContext contextHandle);


Function Description

This call is RTOS specific.

This function is called by Treck to set the current context handle for the currently running task. This function must not change the Treck context in use by any other task. For a multitasking environment, this function would need to save the handle in the current task's private memory (i.e. thread-local storage).


Parameters

  • contextHandle
    The context handle to set as the current context for the currently running task.


Table of Contents >> Integrating Treck >> Creating a Kernel Interface