Source
static void preprocessing_flush_request(zbx_preprocessing_manager_t *manager, zbx_preprocessing_request_t *request)
/*
** Zabbix
** Copyright (C) 2001-2022 Zabbix SIA
**
** 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, write to the Free Software
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
**/
extern unsigned char process_type, program_type;
extern int server_num, process_num, CONFIG_PREPROCESSOR_FORKS;
typedef enum
{
REQUEST_STATE_QUEUED = 0, /* requires preprocessing */
REQUEST_STATE_PROCESSING = 1, /* is being preprocessed */
REQUEST_STATE_DONE = 2, /* value is set, waiting for flush */
REQUEST_STATE_PENDING = 3 /* value requires preprocessing, */
/* but is waiting on other request to complete */
}
zbx_preprocessing_states_t;
typedef struct preprocessing_request zbx_preprocessing_request_t;
ZBX_PTR_VECTOR_DECL(preprocessing_request, zbx_preprocessing_request_t *)
ZBX_PTR_VECTOR_IMPL(preprocessing_request, zbx_preprocessing_request_t *)
/* preprocessing request */
struct preprocessing_request
{