mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
LibThreading: Create WorkerThread class run a single task concurrently
This class can be used to run a task in another thread, and allows the caller to wait for the task to complete to retrieve any error that may have occurred. Currently, it doesn't support functions returning a value on success, but with some template magic that should be possible. :^)
This commit is contained in:
parent
1fcac52e77
commit
ba5bf412e5
4 changed files with 192 additions and 0 deletions
|
@ -222,6 +222,7 @@ set(WEB_FETCH_DEBUG ON)
|
|||
set(WEB_WORKER_DEBUG ON)
|
||||
set(WEBP_DEBUG ON)
|
||||
set(WINDOWMANAGER_DEBUG ON)
|
||||
set(WORKER_THREAD_DEBUG ON)
|
||||
set(WSMESSAGELOOP_DEBUG ON)
|
||||
set(WSSCREEN_DEBUG ON)
|
||||
set(XML_PARSER_DEBUG ON)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue