Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/bhyve/mevent.c
| Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
| #include <pthread.h> | #include <pthread.h> | ||||
| #include <pthread_np.h> | #include <pthread_np.h> | ||||
| #include "mevent.h" | #include "mevent.h" | ||||
| #define MEVENT_MAX 64 | #define MEVENT_MAX 64 | ||||
| extern char *vmname; | extern const char *vmname; | ||||
| static pthread_t mevent_tid; | static pthread_t mevent_tid; | ||||
| static int mevent_timid = 43; | static int mevent_timid = 43; | ||||
| static int mevent_pipefd[2]; | static int mevent_pipefd[2]; | ||||
| static pthread_mutex_t mevent_lmutex = PTHREAD_MUTEX_INITIALIZER; | static pthread_mutex_t mevent_lmutex = PTHREAD_MUTEX_INITIALIZER; | ||||
| struct mevent { | struct mevent { | ||||
| void (*me_func)(int, enum ev_type, void *); | void (*me_func)(int, enum ev_type, void *); | ||||
| ▲ Show 20 Lines • Show All 418 Lines • Show Last 20 Lines | |||||