added api to unity liveness for multithreading