netatalk  4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
idle_worker.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2026 Andy Lemin (andylemin)
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13*/
14
15#ifndef IDLE_WORKER_H
16#define IDLE_WORKER_H
17
18/* Lock-free idle worker — handshake contract documented in idle_worker.c */
19
20extern int iw_init(void);
21extern void iw_grant(void);
22extern void iw_revoke(void);
23extern void iw_revoke_signal_safe(void);
24extern void iw_shutdown(void);
25extern void iw_note_work(void);
26extern int iw_grant_active(void);
27extern int iw_is_active(void);
28extern void iw_log_stats(void);
29
30#endif /* IDLE_WORKER_H */
void iw_revoke(void)
Definition idle_worker.c:121
void iw_log_stats(void)
Definition idle_worker.c:133
void iw_shutdown(void)
Definition idle_worker.c:123
void iw_revoke_signal_safe(void)
Definition idle_worker.c:122
int iw_is_active(void)
Definition idle_worker.c:129
void iw_grant(void)
Definition idle_worker.c:120
int iw_grant_active(void)
Definition idle_worker.c:125
int iw_init(void)
Definition idle_worker.c:113
void iw_note_work(void)
Definition idle_worker.c:124