syslog-ng source
test_thread_wakeup.c File Reference
#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>
Include dependency graph for test_thread_wakeup.c:

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
 

Function Documentation

◆ accept_thread_func()

gpointer accept_thread_func ( gpointer  args)

◆ read_thread_func()

gpointer read_thread_func ( gpointer  args)

◆ sigusr1_handler()

void sigusr1_handler ( int  signo)

◆ Test()

Test ( test_thread_wakeup  ,
testcase   
)

◆ test_accept_wakeup()

int test_accept_wakeup ( void  )

◆ test_read_wakeup()

int test_read_wakeup ( void  )

Variable Documentation

◆ sock

int sock

◆ thread_exit

gboolean thread_exit = FALSE

◆ thread_handle

pthread_t thread_handle

◆ thread_lock

GMutex thread_lock

◆ thread_started

gboolean thread_started

◆ thread_startup

GCond thread_startup