mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
threadpool: improve relationship with LWS_HAVE_PTHREAD_H
Make it clear in more places that threadpool is only built if pthreads available. https://github.com/warmcat/libwebsockets/issues/2607
This commit is contained in:
parent
cad13a8864
commit
9e658fa996
4 changed files with 4 additions and 4 deletions
|
@ -560,7 +560,7 @@ just_kill_connection:
|
|||
lwsl_wsi_debug(wsi, "real just_kill_connection A: (sockfd %d)",
|
||||
wsi->desc.sockfd);
|
||||
|
||||
#if defined(LWS_WITH_THREADPOOL)
|
||||
#if defined(LWS_WITH_THREADPOOL) && defined(LWS_HAVE_PTHREAD_H)
|
||||
lws_threadpool_wsi_closing(wsi);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -706,7 +706,7 @@ struct lws {
|
|||
|
||||
lws_log_cx_t *log_cx;
|
||||
|
||||
#if defined(LWS_WITH_THREADPOOL)
|
||||
#if defined(LWS_WITH_THREADPOOL) && defined(LWS_HAVE_PTHREAD_H)
|
||||
lws_dll2_owner_t tp_task_owner; /* struct lws_threadpool_task */
|
||||
#endif
|
||||
|
||||
|
|
|
@ -625,7 +625,7 @@ struct lws_context {
|
|||
mbedtls_ctr_drbg_context mcdc;
|
||||
#endif
|
||||
|
||||
#if defined(LWS_WITH_THREADPOOL)
|
||||
#if defined(LWS_WITH_THREADPOOL) && defined(LWS_HAVE_PTHREAD_H)
|
||||
struct lws_threadpool *tp_list_head;
|
||||
#endif
|
||||
|
||||
|
|
|
@ -60,7 +60,7 @@ rops_handle_POLLIN_pipe(struct lws_context_per_thread *pt, struct lws *wsi,
|
|||
return LWS_HPI_RET_PLEASE_CLOSE_ME;
|
||||
#endif
|
||||
|
||||
#if defined(LWS_WITH_THREADPOOL)
|
||||
#if defined(LWS_WITH_THREADPOOL) && defined(LWS_HAVE_PTHREAD_H)
|
||||
/*
|
||||
* threadpools that need to call for on_writable callbacks do it by
|
||||
* marking the task as needing one for its wsi, then cancelling service.
|
||||
|
|
Loading…
Add table
Reference in a new issue