Home | History | Annotate | Download | only in tests

Lines Matching defs:thread

425 /* create thread that will call prepare+read so that
430 pthread_t thread;
434 assert(pthread_create(&thread, NULL, func, c) == 0);
436 /* make sure the thread is sleeping. It's a little bit racy
444 return thread;
455 * Calling the read right now will block this thread
456 * until the other thread will read the data.
458 * thread should be woken up or it will block indefinitely.
476 pthread_t thread;
481 /* use this var as an indicator that thread is sleeping */
484 /* create new thread that will register its intention too */
485 thread = create_thread(c, thread_read_error);
487 /* so now we have sleeping thread waiting for a pthread_cond signal.
488 * The main thread must call wl_display_read_events().
490 * end of the function and the sleeping thread will block indefinitely.
491 * Make the call fail and watch if libwayland will unblock the thread! */
497 * post an error that should wake the sleeping thread
502 * thread to exit if it's not blocking. If everything is OK, than
503 * the thread was woken up and the test will end before the SIGALRM */
505 pthread_join(thread, NULL);
555 * thread to exit if it's not blocking. If everything is OK, than
556 * the thread was woken up and the test will end before the SIGALRM */
639 pthread_t thread;
650 assert(pthread_create(&thread, NULL,
653 /* make sure thread is sleeping */
662 pthread_join(thread, NULL);