Files
mod_tile/includes/render_submit_queue.h
Roland Bosa 16a95e0d96 Implemented a "exit please" command
`render_list -S/--stop` will ask renderd to stop all processing and exit.
2024-06-29 13:48:08 -07:00

36 lines
1.1 KiB
C

/*
* Copyright (c) 2007 - 2023 by mod_tile contributors (see AUTHORS file)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; If not, see http://www.gnu.org/licenses/.
*/
#ifndef RENDERSUBQUEUE_H
#define RENDERSUBQUEUE_H
#ifdef __cplusplus
extern "C" {
#endif
int make_connection(const char *spath);
void enqueue(const char *xmlname, int x, int y, int z);
void spawn_workers(int num, const char *socketpath, int maxLoad);
void wait_for_empty_queue(void);
void finish_workers(void);
void print_statistics(void);
#ifdef __cplusplus
}
#endif
#endif