Gocator API

## ◆ GoSystem_LockState()

kStatus GoSystem_LockState | ( | GoSystem | system | ) |

Lock the system state to ensure thread safety while reading/modifying the GoSystem class's list of sensors.

Call this to lock the state before retrieving and using sensor object handles to ensure the sensor object is not deleted because another thread refreshed the system. Used in multi-threaded SDK applications.

Version
  Introduced in firmware 5.2.18.3

Parameters

  system | GoSystem object.

Returns
  Operation status.