/
githubmirror
/
redis
Обзор
Документация
Войти
/
githubmirror
/
redis
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
unstable
src/eventnotifier.h
34 строки
860 B
Pieter Cailliau
Adding AGPLv3 as a license option to Redis! (#13997)
01 май 2025, 16:04
Не верифицирован
01 май 2025, 16:04
d651028
Код
Авторство
О чём код?
/* eventnotifier.h -- An event notifier based on eventfd or pipe. * * Copyright (c) 2024-Present, Redis Ltd. * All rights reserved. * * Licensed under your choice of (a) the Redis Source Available License 2.0 * (RSALv2); or (b) the Server Side Public License v1 (SSPLv1); or (c) the * GNU Affero General Public License v3 (AGPLv3). */ #ifndef EVENTNOTIFIER_H #define EVENTNOTIFIER_H #include "config.h" #define EN_OK 0 #define EN_ERR -1 typedef struct eventNotifier { #ifdef HAVE_EVENT_FD int efd; #else int pipefd[2]; #endif } eventNotifier; eventNotifier* createEventNotifier(void); int getReadEventFd(struct eventNotifier *en); int getWriteEventFd(struct eventNotifier *en); int triggerEventNotifier(struct eventNotifier *en); int handleEventNotifier(struct eventNotifier *en); void freeEventNotifier(struct eventNotifier *en); #endif