Hi there,
I'm trying to implement a pool thread executor using KJ.
I mean an executor that has a list of threads and sends the job to the
"most empty" one.
Or better, when a thread finish his job (or it is blocked by an IO) it
automatically pick the next job from the executor.
I looked up in
xc
--
You received this message because you are subscribed to the Google Groups
"Cap'n Proto" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to capnproto+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/m
write a class that creates threads
> using kj::Thread, and has some sort of kj::MutexGuarded>. Each
> thread would run a loop where it uses MutexGuarded::when() to wait for the
> queue to be non-empty, pops the top job off the queue, and runs it.
>
> -Kenton
>
> On Fri