Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2021 00:40:12 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 666584a04da8 - stable/13 - proc: add PROC_WAIT_UNLOCKED
Message-ID:  <202106070040.1570eC6A062772@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=666584a04da84b6dae7a19b7525b23effd5060b6

commit 666584a04da84b6dae7a19b7525b23effd5060b6
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-05-27 14:29:14 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-06-07 00:34:53 +0000

    proc: add PROC_WAIT_UNLOCKED
    
    (cherry picked from commit 528f8f38953d92aa917cbe70d3c72d89440624ca)
---
 sys/sys/proc.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/sys/proc.h b/sys/sys/proc.h
index 05fdc83fd1e2..7a2210778a39 100644
--- a/sys/sys/proc.h
+++ b/sys/sys/proc.h
@@ -901,6 +901,7 @@ extern pid_t pid_max;
 #define	PROC_TRYLOCK(p)	mtx_trylock(&(p)->p_mtx)
 #define	PROC_UNLOCK(p)	mtx_unlock(&(p)->p_mtx)
 #define	PROC_LOCKED(p)	mtx_owned(&(p)->p_mtx)
+#define	PROC_WAIT_UNLOCKED(p)	mtx_wait_unlocked(&(p)->p_mtx)
 #define	PROC_LOCK_ASSERT(p, type)	mtx_assert(&(p)->p_mtx, (type))
 
 /* Lock and unlock a process group. */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106070040.1570eC6A062772>