Manage the process update.
More...
Manage the process update and communications.
◆ cloudx1_StartUpdateThread()
void cloudx1_StartUpdateThread |
( |
struct cloudx1_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 |
◆ cloudx1_StopUpdateThread()
Stop the update thread
- Parameters
-
instance | the processing instance |
◆ cloudx1_WaitUpdateThreadReady()
int cloudx1_WaitUpdateThreadReady |
( |
struct cloudx1_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