kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit b957d263354e9679259fe91d09b5eb6df2fa796e
parent 02e7359970137605f5df650c294472a2e50e5e7b
Author: Joris Vink <joris@coders.se>
Date:   Fri, 13 Jul 2018 21:04:59 +0200

Let kore_worker_make_busy() not unlock solo workers

Diffstat:
src/worker.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/worker.c b/src/worker.c @@ -562,6 +562,9 @@ kore_worker_wait(int final) void kore_worker_make_busy(void) { + if (worker_count == WORKER_SOLO_COUNT || worker_no_lock == 1) + return; + if (worker->has_lock) { worker_unlock(); worker->has_lock = 0;