#include <criterion/criterion.h>#include "timerwheel.h"#include <stdio.h>#include <stdlib.h>#include <time.h>#include <string.h>
Macros | |
| #define | NUM_TIMERS 10000 |
| #define | ASSOC_DATA_STRING "timerwheel associated data, check whether it's freed" |
Functions | |
| void | timer_callback (TimerWheel *self, guint64 now, gpointer user_data, gpointer caller_context) |
| void | test_wheel (gint seed) |
| Test (dbparser, test_timer_wheel_const) | |
| Test (dbparser, test_timer_wheel_current_time) | |
Variables | |
| gint | num_callbacks |
| guint64 | prev_now |
| #define ASSOC_DATA_STRING "timerwheel associated data, check whether it's freed" |
| #define NUM_TIMERS 10000 |
| Test | ( | dbparser | , |
| test_timer_wheel_const | |||
| ) |
| Test | ( | dbparser | , |
| test_timer_wheel_current_time | |||
| ) |
| void test_wheel | ( | gint | seed | ) |
| void timer_callback | ( | TimerWheel * | self, |
| guint64 | now, | ||
| gpointer | user_data, | ||
| gpointer | caller_context | ||
| ) |
| gint num_callbacks |
| guint64 prev_now |