Lines Matching refs:WinThreads
85 static struct winthread WinThreads[MAX_WINTHREADS];
400 struct winthread *wt = &WinThreads[i];
410 struct winthread *wt = &WinThreads[i];
436 struct winthread *wt = &WinThreads[w];
582 pthread_join(WinThreads[i].Thread, NULL);
586 eglDestroyContext(WinThreads[i].Display, WinThreads[i].Context);
587 XDestroyWindow(WinThreads[i].Dpy, WinThreads[i].Win);
713 WinThreads[i].Dpy = XOpenDisplay(displayName);
714 assert(WinThreads[i].Dpy);
715 WinThreads[i].Display = eglGetDisplay(WinThreads[i].Dpy);
716 assert(eglInitialize(WinThreads[i].Display, NULL, NULL));
719 WinThreads[i].Dpy = dpy;
720 WinThreads[i].Display = egl_dpy;
722 WinThreads[i].Index = i;
723 WinThreads[i].Initialized = GL_FALSE;
725 share = (Texture && i > 0) ? WinThreads[0].Context : 0;
727 create_window(&WinThreads[i], share);
734 pthread_create(&WinThreads[i].Thread, NULL, thread_function,
735 (void*) &WinThreads[i]);
737 (void *) WinThreads[i].Thread);
749 eglTerminate(WinThreads[i].Display);
750 XCloseDisplay(WinThreads[i].Dpy);