void vncClientUpdateThread::Kill() { //vnclog.Print(LL_INTINFO, VNCLOG("kill update thread\n")); omni_mutex_lock l(m_client->GetUpdateLock()); m_active=FALSE; m_signal->signal(); }
void vncClientUpdateThread::Trigger() { // ALWAYS lock client UpdateLock before calling this! // Only trigger an update if protocol is enabled if (m_client->m_disable_protocol == 0) { m_signal->signal(); } }
void vncClientUpdateThread::EnableUpdates(BOOL enable) { // ALWAYS call this with the UpdateLock held! if (enable) { vnclog.Print(LL_INTINFO, VNCLOG("enable update thread\n")); } else { vnclog.Print(LL_INTINFO, VNCLOG("disable update thread\n")); } m_enable = enable; m_signal->signal(); m_sync_sig->wait(); vnclog.Print(LL_INTINFO, VNCLOG("enable/disable synced\n")); }