#include <criterion/criterion.h>#include <glib.h>#include <sys/types.h>#include <sys/socket.h>#include <sys/un.h>#include <fcntl.h>#include <signal.h>#include <pthread.h>#include <stdio.h>#include <errno.h>#include <unistd.h>#include <stdlib.h>#include <string.h>
Functions | |
| void | sigusr1_handler (int signo) |
| gpointer | accept_thread_func (gpointer args) |
| int | test_accept_wakeup (void) |
| gpointer | read_thread_func (gpointer args) |
| int | test_read_wakeup (void) |
| Test (test_thread_wakeup, testcase) | |
Variables | |
| gboolean | thread_exit = FALSE |
| gboolean | thread_started |
| GCond | thread_startup |
| GMutex | thread_lock |
| pthread_t | thread_handle |
| int | sock |
| gpointer accept_thread_func | ( | gpointer | args | ) |
| gpointer read_thread_func | ( | gpointer | args | ) |
| void sigusr1_handler | ( | int | signo | ) |
| Test | ( | test_thread_wakeup | , |
| testcase | |||
| ) |
| int test_accept_wakeup | ( | void | ) |
| int test_read_wakeup | ( | void | ) |
| int sock |
| gboolean thread_exit = FALSE |
| pthread_t thread_handle |
| GMutex thread_lock |
| gboolean thread_started |
| GCond thread_startup |