Manage the process update.
More...
Manage the process update and communications.
◆ 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.
- Parameters
-
instance | the instance |
port | the port to listen for incoming JSON connections. If 0, the JSON server is not accessible |
◆ impact_StopUpdateThread()
Stop the update thread
- Parameters
-
instance | the processing instance |
◆ impact_WaitUpdateThreadReady()
int impact_WaitUpdateThreadReady |
( |
struct impact_CInstance * |
instance, |
|
|
int |
milliseconds |
|
) |
| |
Wait for the update thread to be ready
- Parameters
-
instance | the processing instance |
milliseconds | maximum time to wait in milliseconds |
- Returns
- -1 if timeout waiting for the thread, 0 if OK