Skip to content

Commit 82beae6

Browse files
committed
cov: threadpool: lock ss and wsi mems
1 parent 111dc6d commit 82beae6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/misc/threadpool/threadpool.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -985,12 +985,12 @@ lws_threadpool_enqueue(struct lws_threadpool *tp,
985985
struct lws_threadpool_task *task = NULL;
986986
va_list ap;
987987

988+
pthread_mutex_lock(&tp->lock); /* ======================== tpool lock */
989+
988990
#if defined(LWS_WITH_SECURE_STREAMS)
989991
assert(args->ss || args->wsi);
990992
#endif
991993

992-
pthread_mutex_lock(&tp->lock); /* ======================== tpool lock */
993-
994994
if (tp->destroying)
995995
goto bail;
996996

0 commit comments

Comments
 (0)