php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
fpm_events.c File Reference
#include "fpm_config.h"
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <string.h>
#include <php.h>
#include "fpm.h"
#include "fpm_process_ctl.h"
#include "fpm_events.h"
#include "fpm_cleanup.h"
#include "fpm_stdio.h"
#include "fpm_signals.h"
#include "fpm_children.h"
#include "zlog.h"
#include "fpm_clock.h"
#include "fpm_log.h"
#include "events/select.h"
#include "events/poll.h"
#include "events/epoll.h"
#include "events/port.h"
#include "events/kqueue.h"

Go to the source code of this file.

Macros

#define fpm_event_set_timeout(ev, now)
 

Functions

int fpm_event_pre_init (char *mechanism)
 
const char * fpm_event_mechanism_name (void)
 
int fpm_event_support_edge_trigger (void)
 
int fpm_event_init_main (void)
 
void fpm_event_loop (int err)
 
void fpm_event_fire (struct fpm_event_s *ev)
 
int fpm_event_set (struct fpm_event_s *ev, int fd, int flags, void(*callback)(struct fpm_event_s *, short, void *), void *arg)
 
int fpm_event_add (struct fpm_event_s *ev, unsigned long int frequency)
 
int fpm_event_del (struct fpm_event_s *ev)
 

Macro Definition Documentation

◆ fpm_event_set_timeout

#define fpm_event_set_timeout ( ev,
now )
Value:
timeradd(&(now), &(ev)->frequency, &(ev)->timeout);
#define timeradd(a, b, result)
Definition fpm_config.h:48
time_t now
Definition session.c:1281

Definition at line 33 of file fpm_events.c.

Function Documentation

◆ fpm_event_add()

int fpm_event_add ( struct fpm_event_s * ev,
unsigned long int frequency )

Definition at line 496 of file fpm_events.c.

◆ fpm_event_del()

int fpm_event_del ( struct fpm_event_s * ev)

Definition at line 538 of file fpm_events.c.

◆ fpm_event_fire()

void fpm_event_fire ( struct fpm_event_s * ev)

Definition at line 472 of file fpm_events.c.

◆ fpm_event_init_main()

int fpm_event_init_main ( void )

Definition at line 316 of file fpm_events.c.

◆ fpm_event_loop()

void fpm_event_loop ( int err)

Definition at line 353 of file fpm_events.c.

◆ fpm_event_mechanism_name()

const char * fpm_event_mechanism_name ( void )

Definition at line 306 of file fpm_events.c.

◆ fpm_event_pre_init()

int fpm_event_pre_init ( char * mechanism)

Definition at line 255 of file fpm_events.c.

◆ fpm_event_set()

int fpm_event_set ( struct fpm_event_s * ev,
int fd,
int flags,
void(* callback )(struct fpm_event_s *, short, void *),
void * arg )

Definition at line 482 of file fpm_events.c.

◆ fpm_event_support_edge_trigger()

int fpm_event_support_edge_trigger ( void )

Definition at line 311 of file fpm_events.c.