netatalk
4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
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
20
extern
int
iw_init
(
void
);
21
extern
void
iw_grant
(
void
);
22
extern
void
iw_revoke
(
void
);
23
extern
void
iw_revoke_signal_safe
(
void
);
24
extern
void
iw_shutdown
(
void
);
25
extern
void
iw_note_work
(
void
);
26
extern
int
iw_grant_active
(
void
);
27
extern
int
iw_is_active
(
void
);
28
extern
void
iw_log_stats
(
void
);
29
30
#endif
/* IDLE_WORKER_H */
iw_revoke
void iw_revoke(void)
Definition
idle_worker.c:121
iw_log_stats
void iw_log_stats(void)
Definition
idle_worker.c:133
iw_shutdown
void iw_shutdown(void)
Definition
idle_worker.c:123
iw_revoke_signal_safe
void iw_revoke_signal_safe(void)
Definition
idle_worker.c:122
iw_is_active
int iw_is_active(void)
Definition
idle_worker.c:129
iw_grant
void iw_grant(void)
Definition
idle_worker.c:120
iw_grant_active
int iw_grant_active(void)
Definition
idle_worker.c:125
iw_init
int iw_init(void)
Definition
idle_worker.c:113
iw_note_work
void iw_note_work(void)
Definition
idle_worker.c:124
etc
afpd
idle_worker.h
Generated by
1.18.0