Lines Matching refs:WinThreads
77 static struct winthread WinThreads[MAX_WINTHREADS];
385 struct winthread *wt = &WinThreads[i];
395 struct winthread *wt = &WinThreads[i];
421 struct winthread *wt = &WinThreads[w];
541 pthread_join(WinThreads[i].Thread, NULL);
545 glXDestroyContext(WinThreads[i].Dpy, WinThreads[i].Context);
546 XDestroyWindow(WinThreads[i].Dpy, WinThreads[i].Win);
658 WinThreads[i].Dpy = XOpenDisplay(displayName);
659 assert(WinThreads[i].Dpy);
662 WinThreads[i].Dpy = dpy;
664 WinThreads[i].Index = i;
665 WinThreads[i].Initialized = GL_FALSE;
667 share = (Texture && i > 0) ? WinThreads[0].Context : 0;
669 create_window(&WinThreads[i], share);
676 pthread_create(&WinThreads[i].Thread, NULL, thread_function,
677 (void*) &WinThreads[i]);
678 printf("glthreads: Created thread %p\n", (void *) WinThreads[i].Thread);
690 XCloseDisplay(WinThreads[i].Dpy);