We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 111dc6d commit 82beae6Copy full SHA for 82beae6
1 file changed
lib/misc/threadpool/threadpool.c
@@ -985,12 +985,12 @@ lws_threadpool_enqueue(struct lws_threadpool *tp,
985
struct lws_threadpool_task *task = NULL;
986
va_list ap;
987
988
+ pthread_mutex_lock(&tp->lock); /* ======================== tpool lock */
989
+
990
#if defined(LWS_WITH_SECURE_STREAMS)
991
assert(args->ss || args->wsi);
992
#endif
993
- pthread_mutex_lock(&tp->lock); /* ======================== tpool lock */
-
994
if (tp->destroying)
995
goto bail;
996
0 commit comments