[2/3] sstate: explicitly name the checkhashes thread pool

Message ID 20211124171529.4107434-2-ross.burton@arm.com
State Accepted, archived
Commit 57ea50fcfe81f47b93b9302d1aab2e81dcdd3105
Headers show
Series [1/3] oe/utils: allow naming threads in ThreadedPool | expand

Commit Message

Ross Burton Nov. 24, 2021, 5:15 p.m. UTC
Give this thread pool a name for clarity.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes/sstate.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 0a78a2fb69..0326d27c74 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -1014,7 +1014,8 @@  def sstate_checkhashes(sq_data, d, siginfo=False, currentcount=0, summary=True,
 
             bb.event.enable_threadlock()
             pool = oe.utils.ThreadedPool(nproc, len(tasklist),
-                    worker_init=checkstatus_init, worker_end=checkstatus_end)
+                    worker_init=checkstatus_init, worker_end=checkstatus_end,
+                    name="sstate_checkhashes-")
             for t in tasklist:
                 pool.add_task(checkstatus, t)
             pool.start()