Commit Graph

8 Commits

Author SHA1 Message Date
af819dc758 Task::WaitComplete to avoid spinning
Mutex waiting for task complete. Waiting for a task to be finished, The destructor for the thread and thread pool now take less than 1% usage. 😎
2025-04-10 21:28:06 -04:00
b4b476bd7f Document & wait queue condition in threadpool destructor. 2025-04-10 12:29:10 -04:00
d20bda0d4e Small fixes. Make the demo nicer. 2025-04-09 21:10:28 -04:00
3b9ca2e144 Fixed a timing bug
That would cause the thread to not be reported as busy while putting the task on-to the thread.
2025-04-09 16:37:55 -04:00
a03eb39347 Implement ConcurrentQueue.h from CaveGame 2025-04-09 02:38:23 -05:00
84b9815925 bugfix
Fixed a case where sometimes if the thread was created and then went out of scope too soon it would never get ran.
2025-04-08 21:13:34 -04:00
987ec27d9b Fix edge case where the thread sometimes doesn't exit gracefully 2025-04-08 20:32:26 -04:00
09a8bd0868 initial commit 2025-04-08 16:52:41 -04:00