| Message ID | 20260106220403.2915630-4-sjg@u-boot.org |
|---|---|
| State | New |
| Headers |
Return-Path: <concept-bounces+u-boot-concept=u-boot.org@u-boot.org> X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737073; bh=f3HOJFcQy6hHMlxOW6fcEcw9SYw3snye/evzVKMvb2E=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ikWFqZkelgtkuAif3pCGoXK0oR0tIAsf/84077wySw4Mt6rfAprXLJrpY46+XnxRd TYbIhARvOEWor1IEHQ6Mvv5yNpLlmtwprTG/nVDtoBwb8W1o32wnO79bCb1hrfde1V E0mj6iK5oMLhUH2b9iCfeN/LEKGwm+YudGJ4Rz5z9IIYR78pi5Wf/3co2gGpQIkBkQ BtgZ0SjYGpd9scqg9buxOE6/4senO8s+eAM+VUKB0H5OX6cloWeRystDe1IlG8kbEm Ur0mbgodIuSDgOX1ABoOgHbEqBMUggR4zrvSdxikPv3Kf7Kmg9Odiflhf+LDtNhLmx HtfukixcfwSmw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id C7AE269158 for <u-boot-concept@u-boot.org>; Tue, 6 Jan 2026 15:04:33 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id P0kzp66KNeUb for <u-boot-concept@u-boot.org>; Tue, 6 Jan 2026 15:04:33 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737073; bh=f3HOJFcQy6hHMlxOW6fcEcw9SYw3snye/evzVKMvb2E=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=ikWFqZkelgtkuAif3pCGoXK0oR0tIAsf/84077wySw4Mt6rfAprXLJrpY46+XnxRd TYbIhARvOEWor1IEHQ6Mvv5yNpLlmtwprTG/nVDtoBwb8W1o32wnO79bCb1hrfde1V E0mj6iK5oMLhUH2b9iCfeN/LEKGwm+YudGJ4Rz5z9IIYR78pi5Wf/3co2gGpQIkBkQ BtgZ0SjYGpd9scqg9buxOE6/4senO8s+eAM+VUKB0H5OX6cloWeRystDe1IlG8kbEm Ur0mbgodIuSDgOX1ABoOgHbEqBMUggR4zrvSdxikPv3Kf7Kmg9Odiflhf+LDtNhLmx HtfukixcfwSmw== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id B5692690CB for <u-boot-concept@u-boot.org>; Tue, 6 Jan 2026 15:04:33 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737072; bh=m1lBdLCuzs1l7ixbEwwsLCZ4uKpnpTfuuitovDGur5I=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LF3xTwnZ1VWzByioNZ6rSSv03ZPUJmmBZOiFfv8nI9TBCVObDl0iSDtQ00W3+GP6o Ns0jqCXJAeisxth0ROKR7zgqgCZlgDPGwd12gnHWRnsnH+nJhgbN71I0zlY/MlRDcv SRP4S3Ibetu7cMefwzDIrcIvdMLNDCuU84rgxBp3lMcljgSRq3ouOu2sCDSBDj2Gn5 N7QUhR9iy68GJ8C4MnwUbYlsBk7/gcAax5+k3ItLJuyyFHWnWtdp3l4/e+OXiPY5gJ RpKsgUu8OaefY6JV9i092TP84G0YmioPhF/R18RICGi6NFjRd8P4w7DDWFhXjohkbN e7wnBcdAcFhnA== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 4D44A690CB; Tue, 6 Jan 2026 15:04:32 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id UTdzwZ6uEpn2; Tue, 6 Jan 2026 15:04:32 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767737068; bh=JahlyiqdrVKAZKuLc8NqbPrSWdbiIVNGwdOFVwFqoF8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=uX73X26kW8FKIVC+ehUayAlA3hY8h//2Xnf7C+PBO7kjLifOTjTwAvqW41Vqn7BhC EdSSjw1blAD2Gd8icp3WVl5FzM64HRWlHkqbcET0ZOtAMPRqVw+6l/O8SYlzvTDpGd 1bYsaO6TMQyjXikVdp/PKGXfJKi7BAh4zSfmyRpCvHdDPSgYQhH0a+Sp0gF/FnPEfU 57K1NnV4RJq2CY3ZhGKuCBWLSu5IYIwx773dYGcnTBvPCXZVYnbIMV3SDJ5cqwz4Us SApn7u63/Yw75fZ/J9H13+cyX/GxQ9Z8l3N1P18ZFgQTrMta27GutTj3NOlQ/jqhJO YLBMZYa1kS1Qw== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id CBE4269146; Tue, 6 Jan 2026 15:04:27 -0700 (MST) From: Simon Glass <sjg@u-boot.org> To: U-Boot Concept <concept@u-boot.org> Date: Tue, 6 Jan 2026 15:03:21 -0700 Message-ID: <20260106220403.2915630-4-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260106220403.2915630-1-sjg@u-boot.org> References: <20260106220403.2915630-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: 7THRUR7B7DHNH5B6H7LI75Q65DLUUIBM X-Message-ID-Hash: 7THRUR7B7DHNH5B6H7LI75Q65DLUUIBM X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Simon Glass <simon.glass@canonical.com>, Claude <noreply@anthropic.com> X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH 03/29] buildman: Replace setDaemon() with daemon property List-Id: Discussion and patches related to U-Boot Concept <concept.u-boot.org> Archived-At: <https://lists.u-boot.org/archives/list/concept@u-boot.org/message/7THRUR7B7DHNH5B6H7LI75Q65DLUUIBM/> List-Archive: <https://lists.u-boot.org/archives/list/concept@u-boot.org/> List-Help: <mailto:concept-request@u-boot.org?subject=help> List-Owner: <mailto:concept-owner@u-boot.org> List-Post: <mailto:concept@u-boot.org> List-Subscribe: <mailto:concept-join@u-boot.org> List-Unsubscribe: <mailto:concept-leave@u-boot.org> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit |
| Series |
buildman: Clean up builder.py
|
|
Commit Message
Simon Glass
Jan. 6, 2026, 10:03 p.m. UTC
From: Simon Glass <simon.glass@canonical.com> Move the thread setup code into _setup_threads() to improve readability and reduce the complexity of __init__() Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com> --- tools/buildman/builder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/buildman/builder.py b/tools/buildman/builder.py index cb349120467..63456542b54 100644 --- a/tools/buildman/builder.py +++ b/tools/buildman/builder.py @@ -395,12 +395,12 @@ class Builder: t = builderthread.BuilderThread( self, i, mrproper, per_board_out_dir, test_exception=test_thread_exceptions) - t.setDaemon(True) + t.daemon = True t.start() self.threads.append(t) t = builderthread.ResultThread(self) - t.setDaemon(True) + t.daemon = True t.start() self.threads.append(t) else: @@ -1849,7 +1849,7 @@ class Builder: if self.num_threads: term = threading.Thread(target=self.queue.join) - term.setDaemon(True) + term.daemon = True term.start() while term.is_alive(): term.join(100)