51 int (*
init_pt)(
struct lws_context *context,
void *_loop,
int tsi);
61 void (*
io)(
struct lws *wsi,
unsigned int flags);
63 void (*
run_pt)(
struct lws_context *context,
int tsi);
65 void (*
destroy_pt)(
struct lws_context *context,
int tsi);
106 struct lws_context_per_thread;
110 #if !defined(wsi_from_fd) && !defined(WIN32) && !defined(_WIN32)
130 struct lws_mutex_refcount {
131 pthread_mutex_t lock;
132 pthread_t lock_owner;
133 const char *last_lock_reason;
139 lws_mutex_refcount_assert_held(
struct lws_mutex_refcount *mr);
142 lws_mutex_refcount_init(
struct lws_mutex_refcount *mr);
145 lws_mutex_refcount_destroy(
struct lws_mutex_refcount *mr);
148 lws_mutex_refcount_lock(
struct lws_mutex_refcount *mr,
const char *reason);
151 lws_mutex_refcount_unlock(
struct lws_mutex_refcount *mr);
int(* lws_dll2_foreach_cb_t)(struct lws_dll2 *d, void *user)
LWS_VISIBLE LWS_EXTERN void __lws_close_free_wsi_final(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN void lws_vhost_destroy1(struct lws_vhost *vh)
LWS_VISIBLE LWS_EXTERN void * lws_realloc(void *ptr, size_t size, const char *reason)
LWS_VISIBLE LWS_EXTERN int _lws_plat_service_forced_tsi(struct lws_context *context, int tsi)
LWS_VISIBLE LWS_EXTERN void lws_close_free_wsi(struct lws *wsi, enum lws_close_status reason, const char *caller)
LWS_VISIBLE LWS_EXTERN struct lws * wsi_from_fd(const struct lws_context *context, int fd)
LWS_VISIBLE LWS_EXTERN void lws_destroy_event_pipe(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN void lws_context_destroy2(struct lws_context *context)
LWS_VISIBLE LWS_EXTERN void * lws_evlib_wsi_to_evlib_pt(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN int lws_vhost_foreach_listen_wsi(struct lws_context *cx, void *arg, lws_dll2_foreach_cb_t cb)
LWS_VISIBLE LWS_EXTERN void * lws_evlib_tsi_to_evlib_pt(struct lws_context *ctx, int tsi)
LWS_VISIBLE LWS_EXTERN void lws_service_do_ripe_rxflow(struct lws_context_per_thread *pt)
void(* destroy_pt)(struct lws_context *context, int tsi)
int(* check_client_connect_ok)(struct lws *wsi)
int(* destroy_context1)(struct lws_context *context)
void(* io)(struct lws *wsi, unsigned int flags)
void(* run_pt)(struct lws_context *context, int tsi)
int(* destroy_context2)(struct lws_context *context)
void(* close_handle_manually)(struct lws *wsi)
void(* destroy_wsi)(struct lws *wsi)
int(* fake_POLLIN_override)(struct lws_context *context, int tsi)
int(* wsi_logical_close)(struct lws *wsi)
int(* foreign_thread)(struct lws_context *context, int tsi)
int(* sock_accept)(struct lws *wsi)
int(* init_vhost_listen_wsi)(struct lws *wsi)
int(* init_context)(struct lws_context *context, const struct lws_context_creation_info *info)
int(* init_pt)(struct lws_context *context, void *_loop, int tsi)