38 struct lws_threadpool;
39 struct lws_threadpool_task;
74 #if defined(LWS_WITH_SECURE_STREAMS)
75 struct lws_ss_handle *ss;
216 struct lws_threadpool_task **task,
void **user)
262 #if defined(LWS_WITH_SECURE_STREAMS)
264 lws_threadpool_get_task_ss(
struct lws_ss_handle *ss);
270 int (*cb)(
struct lws_threadpool_task *task,
273 #if defined(LWS_WITH_SECURE_STREAMS)
275 lws_threadpool_foreach_task_ss(
struct lws_ss_handle *ss,
void *user,
276 int (*cb)(
struct lws_threadpool_task *task,
void *user));
#define LWS_WARN_DEPRECATED
#define LWS_FORMAT(string_index)
LWS_VISIBLE LWS_EXTERN void lws_threadpool_destroy(struct lws_threadpool *tp)
lws_threadpool_task_status
lws_threadpool_task_return
@ LWS_TP_RETURN_FLAG_OUTLIVE
@ LWS_TP_RETURN_CHECKING_IN
LWS_VISIBLE LWS_EXTERN int lws_threadpool_dequeue_task(struct lws_threadpool_task *task)
LWS_VISIBLE LWS_EXTERN void lws_threadpool_task_sync(struct lws_threadpool_task *task, int stop)
LWS_VISIBLE LWS_EXTERN enum lws_threadpool_task_status lws_threadpool_task_status_wsi(struct lws *wsi, struct lws_threadpool_task **task, void **user) LWS_WARN_DEPRECATED
LWS_VISIBLE LWS_EXTERN int lws_threadpool_foreach_task_wsi(struct lws *wsi, void *user, int(*cb)(struct lws_threadpool_task *task, void *user))
LWS_VISIBLE LWS_EXTERN void lws_threadpool_dump(struct lws_threadpool *tp)
LWS_VISIBLE LWS_EXTERN struct lws_threadpool * lws_threadpool_create(struct lws_context *context, const struct lws_threadpool_create_args *args, const char *format,...) LWS_FORMAT(3)
LWS_VISIBLE LWS_EXTERN int lws_threadpool_dequeue(struct lws *wsi) LWS_WARN_DEPRECATED
LWS_VISIBLE LWS_EXTERN enum lws_threadpool_task_status lws_threadpool_task_status_noreap(struct lws_threadpool_task *task)
LWS_VISIBLE LWS_EXTERN struct lws_threadpool_task * lws_threadpool_get_task_wsi(struct lws *wsi)
LWS_VISIBLE LWS_EXTERN struct lws_threadpool_task * lws_threadpool_enqueue(struct lws_threadpool *tp, const struct lws_threadpool_task_args *args, const char *format,...) LWS_FORMAT(3)
LWS_VISIBLE LWS_EXTERN void lws_threadpool_finish(struct lws_threadpool *tp)
enum lws_threadpool_task_return(* task)(void *user, enum lws_threadpool_task_status s)
void(* cleanup)(struct lws *wsi, void *user)