From: Philippe Gerum Subject: [PATCH v2 2/7] cobalt/thread: update inline documentation Date: Sun, 24 Nov 2019 16:46:03 +0100 Message-Id: <20191124154608.9353-2-rpm@xenomai.org> In-Reply-To: <20191124154608.9353-1-rpm@xenomai.org> References: <20191124154608.9353-1-rpm@xenomai.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org From: Philippe Gerum Signed-off-by: Philippe Gerum --- kernel/cobalt/thread.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/cobalt/thread.c b/kernel/cobalt/thread.c index 666b4d4ca..a95396a0d 100644 --- a/kernel/cobalt/thread.c +++ b/kernel/cobalt/thread.c @@ -1012,16 +1012,16 @@ void xnthread_suspend(struct xnthread *thread, int mask, * We only care for threads that are not current, and for * XNSUSP, XNDELAY, XNDORMANT and XNHELD conditions, because: * - * - There is no point in dealing with relaxed threads, since - * personalities have to ask for primary mode switch when - * processing any syscall which may block the caller - * (i.e. __xn_exec_primary). + * - There is no point in dealing with a relaxed thread which + * is current, since personalities have to ask for primary + * mode switch when processing any syscall which may block the + * caller (i.e. __xn_exec_primary). * * - among all blocking bits (XNTHREAD_BLOCK_BITS), only - * XNSUSP, XNDELAY and XNHELD may be applied by the current - * thread to a non-current thread. XNPEND is always added by - * the caller to its own state, XNMIGRATE and XNRELAX have - * special semantics escaping this issue. + * XNSUSP, XNDELAY, XNHELD and XNDBGSTOP may be applied by the + * current thread to a non-current thread. XNPEND is always + * added by the caller to its own state, XNMIGRATE, XNRELAX + * and XNDBGSTOP have special semantics escaping this issue. * * We don't signal threads which are already in a dormant * state, since they are suspended by definition. -- 2.21.0