From nobody Mon Jul 27 16:17:54 2026 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4h83fW0tFCz6nBcP for ; Mon, 27 Jul 2026 16:17:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h83fV5q53z431Q for ; Mon, 27 Jul 2026 16:17:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785169074; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h8h8EcRPOzGPOTfiC+phzwVgdtCAWDDA3fIAnrSxjCA=; b=RrmPTeg4RlmwkvwimYH+S2z5J9O5M+y/P3vxkFJhVre/Hyj0HpL2nqN51JklQAYaEpXlUA l4YneZ52s004WVvNOcsJE6X2/6NrfD1kbGNNOh8oFkVxUDuI+W0iWURH5U1IKqfXvwG8om MhQr6JYHt8amnhJ9v4Tl6il4JSeFeb2XflStdD/F55xIBUIKlVfMLcNS9/xERPy/rrvF06 /F5HFsgd7KWMIuKrdRC2Edr9n6vXmY0ekTEFPBoaWiCxIzAKqSz3S+XSYorThIVHbSfhS2 NG58ebLDfwUfzDJCoRH1M4Au6rRfbgrcl8f3+HfK0VzMhTNMf/nakFq9tbphtg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785169074; a=rsa-sha256; cv=none; b=YAU6vSJhRNM1PhVY5kx9ky3aq7YR9ug4K4MnhCjqSi4t/NXZZQOntp9fUNAJnIJPHzxMhF iC++uGwnrqrKhF8yxcFyNHvwtckytysqQ+Ou9t2LTHiHG2aeLS4lIH9MDaftneK9cDI3V+ pwVUV7qWu/P/X2HVJeCFbW9Q1bLXZcUVjm0Xs3M6124bvfeOOuPdsf801jl+kBH3rqgjLQ OUqYwEP/RIajGP4guj6X0qFkEGNPrBX+hccMTgvzdukPIt/GtpYg2lQiQF2zCix7YLzTS+ R02LYiuJKoBq32kq4mffpKBiZmF+B02OmyffJcHDWUUzr0v76ftipba/Of8UQg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785169074; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=h8h8EcRPOzGPOTfiC+phzwVgdtCAWDDA3fIAnrSxjCA=; b=PGWU+k0HKPyM+nGEjvdbiytiDzz1yMxmh6WWROomv6JlU47oUshW9TNgqibTr2x/3mrWDF LOzqNXQTp96CWpTFcew4soSKMO6zTAtJi6heTFWx+h62+RU9KKCZuXtlw4sJVodvbkZrfh XKZIRcoZ2RU20Lx7WZJPBBoabg39VkHH6r9Lljpmbh/mMLRwgbP9mVzHdyoXjfreIrm9Ny 8Q7zx0zBwobKxetfwq9WXr6sDLP2TI3Ytwnfz3iiML02Cik40wpOMBnGNki1kHcP4sAmni ti58kdaMqyzX/QM/ClJMfjT8CQSl+US2Q54gyC0AI32MxRVroE4hQeJfeA7rgw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h83fV4dPVz1FKP for ; Mon, 27 Jul 2026 16:17:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1d8be by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Mon, 27 Jul 2026 16:17:54 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 196cc005b197 - main - libthr/thread/thr_umtx.c: style _thr_ucond_wait() List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 196cc005b197ab8bf5044c3fc457697986a14b39 Auto-Submitted: auto-generated Date: Mon, 27 Jul 2026 16:17:54 +0000 Message-Id: <6a6784b2.1d8be.5fc41387@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=196cc005b197ab8bf5044c3fc457697986a14b39 commit 196cc005b197ab8bf5044c3fc457697986a14b39 Author: Konstantin Belousov AuthorDate: 2026-07-25 21:37:55 +0000 Commit: Konstantin Belousov CommitDate: 2026-07-27 16:17:28 +0000 libthr/thread/thr_umtx.c: style _thr_ucond_wait() Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D58463 --- lib/libthr/thread/thr_umtx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libthr/thread/thr_umtx.c b/lib/libthr/thread/thr_umtx.c index bbc68d0e30c6..db63017a6a13 100644 --- a/lib/libthr/thread/thr_umtx.c +++ b/lib/libthr/thread/thr_umtx.c @@ -242,18 +242,18 @@ _thr_ucond_init(struct ucond *cv) int _thr_ucond_wait(struct ucond *cv, struct umutex *m, - const struct timespec *timeout, int flags) + const struct timespec *timeout, int flags) { struct pthread *curthread; - if (timeout && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && + if (timeout != NULL && (timeout->tv_sec < 0 || (timeout->tv_sec == 0 && timeout->tv_nsec <= 0))) { curthread = _get_curthread(); _thr_umutex_unlock(m, TID(curthread)); return (ETIMEDOUT); } return (_umtx_op_err(cv, UMTX_OP_CV_WAIT, flags, m, - __DECONST(void*, timeout))); + __DECONST(void *, timeout))); } int