Lines Matching defs:thread

70     pthread_t thread;
97 pthread_equal(pthread_self(), inputThreadInfo->thread);
136 * Notify a thread about the availability of new asynchronously enqueued input
153 * Consume eventual notifications left by a thread.
168 FatalError("input-thread: draining pipe (%d)", errno);
219 DebugF("input-thread: could not register device\n");
238 DebugF("input-thread: registered device %d\n", fd);
257 /* return silently if input thread is already finished (e.g., at
284 DebugF("input-thread: unregistered device: %d\n", fd);
303 * Runs in parallel with the server main thread, listening to input devices in
317 /* Don't handle any signals on this thread */
339 DebugF("input-thread: %s waiting for devices\n", __func__);
371 FatalError("input-thread: %s (%s)", __func__, strerror(errno));
373 ErrorF("input-thread: %s (%s)\n", __func__, strerror(errno));
376 /* Kick main thread to process the generated input events and drain
406 FatalError("input-thread: could not create pipe");
409 FatalError("input-thread: could not create pipe");
413 FatalError("input-thread: could not allocate memory");
417 inputThreadInfo->thread = 0;
421 /* By making read head non-blocking, we ensure that while the main thread
422 * is busy servicing client requests, the dedicated input thread can work
445 #ifndef __linux__ /* Linux does not deal well with renaming the main thread */
458 * creating the dedicated input thread.
466 /* If the driver hasn't asked for input thread support by calling
475 * lines have sense. Linux uses the 1:1 thread model. The scheduler handles
476 * every thread as a normal process. Therefore this probably has no meaning
480 ErrorF("input-thread: error setting thread scope\n");
482 DebugF("input-thread: creating thread\n");
483 pthread_create(&inputThreadInfo->thread, &attr,
502 /* Close the pipe to get the input thread to shut down */
505 pthread_join(inputThreadInfo->thread, NULL);