Lines Matching refs:threads
27 // the GLFW API is able to be used from multiple threads
86 Thread threads[] =
92 const int count = sizeof(threads) / sizeof(Thread);
104 threads[i].window = glfwCreateWindow(200, 200,
105 threads[i].title,
107 if (!threads[i].window)
113 glfwSetKeyCallback(threads[i].window, key_callback);
116 glfwMakeContextCurrent(threads[0].window);
122 if (thrd_create(&threads[i].id, thread_main, threads + i) !=
138 if (glfwWindowShouldClose(threads[i].window))
144 glfwHideWindow(threads[i].window);
147 thrd_join(threads[i].id, &result);