Lines Matching refs:g_ctx
41 static VBOXCLIPBOARDCONTEXT g_ctx;
111 g_ctx.fTerminate = false;
113 int rc = initPasteboard (&g_ctx.pasteboard);
116 rc = RTThreadCreate (&g_ctx.thread, vboxClipboardThread, &g_ctx, 0,
120 g_ctx.thread = NIL_RTTHREAD;
121 destroyPasteboard (&g_ctx.pasteboard);
135 ASMAtomicWriteBool (&g_ctx.fTerminate, true);
136 int rc = RTThreadUserSignal (g_ctx.thread);
138 rc = RTThreadWait (g_ctx.thread, RT_INDEFINITE_WAIT, NULL);
144 destroyPasteboard (&g_ctx.pasteboard);
145 g_ctx.thread = NIL_RTTHREAD;
146 g_ctx.pClient = NULL;
157 if (g_ctx.pClient != NULL)
165 pClient->pCtx = &g_ctx;