WSThread_tls::WSThread_tls(WSTangoConn *tc, int portNumber, string cert, string key) : WSThread(tc, portNumber) { certificate_ = cert; key_ = key; start_undetached(); }
void StatisticsKeeper::Start(long milliseconds) { fMilliseconds = milliseconds; if (fMilliseconds > 0) start_undetached(); }
BOOL vncLogonThread::Init(vncDesktop *desktop) { m_desktop = desktop; m_desktop->logon=1; logonhwnd=NULL; rect.left=0; rect.top=0; rect.right=32; rect.bottom=32; start_undetached(); return TRUE; }
// Method implementations BOOL vncSockConnectThread::Init(VSocket *socket, vncServer *server) { // Save the server pointer m_server = server; // Save the socket pointer m_socket = socket; // Start the thread m_shutdown = FALSE; start_undetached(); return TRUE; }
BOOL vncClientUpdateThread::Init(vncClient *client) { vnclog.Print(LL_INTINFO, VNCLOG("init update thread\n")); m_client = client; omni_mutex_lock l(m_client->GetUpdateLock()); m_signal = new omni_condition(&m_client->GetUpdateLock()); m_sync_sig = new omni_condition(&m_client->GetUpdateLock()); m_active = TRUE; m_enable = m_client->m_disable_protocol == 0; if (m_signal && m_sync_sig) { start_undetached(); return TRUE; } return FALSE; }
void ConnDialogThread::Init(HINSTANCE hInst, const char *vnchost) { m_hInst = hInst; if (vnchost != NULL) m_vnchost = strdup(vnchost); else m_vnchost = NULL; m_started = false; m_hwnd = NULL; // Start execution of the new thread start_undetached(); // Wait for the dialog box to be displayed while (!m_started) sleep(0, 50000000); }
BOOL vncDesktopThread::Init(vncDesktop *desktop, vncServer *server) { // Save the server pointer m_server = server; m_desktop = desktop; m_returnset = FALSE; m_returnsig = new omni_condition(&m_returnLock); // Start the thread start_undetached(); // Wait for the thread to let us know if it failed to init { omni_mutex_lock l(m_returnLock); while (!m_returnset) { m_returnsig->wait(); } } return m_return; }