mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-07-25 15:04:30 +00:00
Move variables to prevent duplicates
This commit is contained in:
@ -45,7 +45,7 @@ typedef struct {
|
||||
|
||||
|
||||
|
||||
struct request_queue * render_request_queue;
|
||||
extern struct request_queue * render_request_queue;
|
||||
|
||||
void statsRenderFinish(int z, long time);
|
||||
void request_exit(void);
|
||||
|
@ -5,8 +5,6 @@ extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
int work_complete;
|
||||
|
||||
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);
|
||||
|
@ -49,6 +49,7 @@ static renderd_config config;
|
||||
|
||||
int noSlaveRenders;
|
||||
|
||||
struct request_queue * render_request_queue;
|
||||
|
||||
static const char *cmdStr(enum protoCmd c)
|
||||
{
|
||||
|
@ -89,7 +89,6 @@ unsigned long long twopow[MAX_ZOOM];
|
||||
static int minZoom = 0;
|
||||
static int maxZoom = 18;
|
||||
static int verbose = 0;
|
||||
int work_complete;
|
||||
static int maxLoad = MAX_LOAD_OLD;
|
||||
|
||||
void display_rate(struct timeval start, struct timeval end, int num)
|
||||
|
@ -40,7 +40,6 @@ static int maxZoom = MAX_ZOOM;
|
||||
static int verbose = 0;
|
||||
static int maxLoad = MAX_LOAD_OLD;
|
||||
|
||||
int work_complete;
|
||||
|
||||
void display_rate(struct timeval start, struct timeval end, int num)
|
||||
{
|
||||
|
@ -47,7 +47,6 @@ static time_t planetTime;
|
||||
static struct timeval start, end;
|
||||
|
||||
|
||||
int work_complete;
|
||||
|
||||
void display_rate(struct timeval start, struct timeval end, int num)
|
||||
{
|
||||
|
@ -47,6 +47,7 @@ static struct qItem *qHead, *qTail;
|
||||
|
||||
static int no_workers;
|
||||
static pthread_t *workers;
|
||||
static int work_complete;
|
||||
|
||||
static void check_load(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user