Commit graph

7 commits

Author SHA1 Message Date
Ivailo Monev
9d2994fad0 kdecore: start as many threads as possible from the queue of KThreadPool
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-20 17:32:44 +03:00
Ivailo Monev
e75bf1747a kdecore: const-ify KThreadPool::setMaxThreadCount() argument
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 22:59:09 +03:00
Ivailo Monev
941a85507b kdecore: reject invalid threads count from KThreadPool::setMaxThreadCount()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-19 22:57:35 +03:00
Ivailo Monev
5f23665baa kdecore: use regular integer for the active threads counter in KThreadPool
with KThreadPool being mutex-locked it should not be subject to
race-condition

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 07:06:00 +03:00
Ivailo Monev
632dd982df plasma: remove redundant KThreadPool::setMaxThreadCount() call
KThreadPool uses the same value by default

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 06:40:49 +03:00
Ivailo Monev
ecd57181ea kdecore: delete the threads from KThreadPool
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 06:37:12 +03:00
Ivailo Monev
2f485d5376 generic: replace QThreadPool and QRunnable with custom class
on a side note it does not solve any thread-safety issues, such are out
of the scope of the class

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2024-04-18 03:05:03 +03:00