bio
 
Loading...
Searching...
No Matches
platform.h
1#ifndef BIO_FREEBSD_PLATFORM_H
2#define BIO_FREEBSD_PLATFORM_H
3
4#include "../array.h"
5#include <sys/signal.h>
6#include <bio/bio.h>
7
27#ifndef BIO_FREEBSD_DEFAULT_BATCH_SIZE
28# define BIO_FREEBSD_DEFAULT_BATCH_SIZE 4
29#endif
30
33struct kevent;
34
35typedef struct {
36 bio_signal_t signal;
37 struct kevent* result;
38 bool cancelled;
40
41typedef struct {
42 int kqueue;
43 BIO_ARRAY(struct kevent) in_events;
44 struct kevent* out_events;
45
46 sigset_t old_sigmask;
47 struct sigaction old_sigterm;
48 struct sigaction old_sigint;
49 bool signal_monitored;
51
52#endif
Definition platform.h:35
Definition platform.h:41
Handle to a signal.
Definition bio.h:147