#include <errno.h>#include <pthread.h>#include <signal.h>#include <stdatomic.h>#include <string.h>#include <time.h>#include <atalk/logger.h>#include <atalk/util.h>#include <atalk/queue.h>#include "dircache.h"#include "directory.h"#include "idle_worker.h"Data Structures | |
| struct | [struct].iw_stat |
Macros | |
| #define | IW_WAKE_MS 10 |
| #define | IW_SPIN_ITERATIONS 128 |
| #define | IW_WAIT_SLEEP_NS 100000L |
| #define | IW_CPU_RELAX() |
| #define | IW_STAT_INC(field) |
Functions | |
| int | iw_init (void) |
| void | iw_grant (void) |
| void | iw_revoke (void) |
| void | iw_revoke_signal_safe (void) |
| void | iw_shutdown (void) |
| void | iw_note_work (void) |
| int | iw_grant_active (void) |
| int | iw_is_active (void) |
| void | iw_log_stats (void) |
Variables | |
| static atomic_int | iw_has_work = 0 |
| static atomic_int | iw_can_work = 0 |
| static atomic_int | iw_is_working = 0 |
| static atomic_int | iw_shutdown_flag = 0 |
| static pthread_t | iw_tid |
| static int | iw_started = 0 |
| static int | iw_granted = 0 |
| static struct | iw_stat |
| #define IW_CPU_RELAX | ( | ) |
| #define IW_SPIN_ITERATIONS 128 |
| #define IW_STAT_INC | ( | field | ) |
| #define IW_WAIT_SLEEP_NS 100000L |
| #define IW_WAKE_MS 10 |
| void iw_grant | ( | void | ) |
| int iw_grant_active | ( | void | ) |
| int iw_init | ( | void | ) |
| int iw_is_active | ( | void | ) |
| void iw_log_stats | ( | void | ) |
| void iw_note_work | ( | void | ) |
| void iw_revoke | ( | void | ) |
| void iw_revoke_signal_safe | ( | void | ) |
| void iw_shutdown | ( | void | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| struct [struct].iw_stat iw_stat |
|
static |