1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2026-01-19 16:11:01 +00:00
serenity/Userland/Libraries/LibThreading
Andreas Kling e8579ed24a LibThreading: Wake up the background worker thread when there's work
The worker thread used for BackgroundAction was going to sleep for
1 second at a time (when there was nothing to do.) This made using
background actions for anything interactive quite unresponsive since
you had to wait up to 1 second before it even started on your task.

We now use a simple Unix pipe to signal the worker thread that a new
work item is available.

This makes Assistant way more responsive when typing. :^)
2021-07-04 18:56:08 +02:00
..
BackgroundAction.cpp
BackgroundAction.h
CMakeLists.txt
Lock.h
Thread.cpp
Thread.h