-void sessiond_set_client_thread_state(bool running)
-{
- pthread_mutex_lock(&client_thread_state.lock);
- client_thread_state.is_running = running;
- pthread_cond_broadcast(&client_thread_state.cond);
- pthread_mutex_unlock(&client_thread_state.lock);
-}
-
-void sessiond_wait_client_thread_stopped(void)
-{
- pthread_mutex_lock(&client_thread_state.lock);
- while (client_thread_state.is_running) {
- pthread_cond_wait(&client_thread_state.cond,
- &client_thread_state.lock);
- }
- pthread_mutex_unlock(&client_thread_state.lock);
-}
-