SOUND4 IMPACT.CL Library [1.3.6]
Loading...
Searching...
No Matches
Functions
Update Management

Manage the process update. More...

Functions

void impact_StartUpdateThread (struct impact_CInstance *instance, unsigned int port)
 
void impact_StopUpdateThread (struct impact_CInstance *instance)
 
int impact_WaitUpdateThreadReady (struct impact_CInstance *instance, int milliseconds)
 

Detailed Description

Manage the process update and communications.

Function Documentation

◆ impact_StartUpdateThread()

void impact_StartUpdateThread ( struct impact_CInstance instance,
unsigned int  port 
)

Update function

This needs to run in a thread, which can have low priority. It will also allow the JSON access via TCP.

Remarks
This function does not return until it is stopped with impact_StopUpdateThread
Parameters
instancethe instance
portthe port to listen for incoming JSON connections. If 0, the JSON server is not accessible

◆ impact_StopUpdateThread()

void impact_StopUpdateThread ( struct impact_CInstance instance)

Stop the update thread

Parameters
instancethe processing instance

◆ impact_WaitUpdateThreadReady()

int impact_WaitUpdateThreadReady ( struct impact_CInstance instance,
int  milliseconds 
)

Wait for the update thread to be ready

Parameters
instancethe processing instance
millisecondsmaximum time to wait in milliseconds
Returns
-1 if timeout waiting for the thread, 0 if OK