From mboxrd@z Thu Jan 1 00:00:00 1970 References: From: Philippe Gerum Subject: Re: Moving inband work off stack - remaing cases In-reply-to: Date: Fri, 11 Jun 2021 17:35:32 +0200 Message-ID: <875yykbeij.fsf@xenomai.org> MIME-Version: 1.0 Content-Type: text/plain List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Xenomai Jan Kiszka writes: > Hi Philippe, > > I'm trying to understand the reasoning for moving inband work struct for > the remaining cases of the triggering stack. > > To my understanding, this is not needed for xnthread_map (to be > privatized soon, so only for the in-tree case) because the caller > providing the struct waits for the completion which will be triggered > via the inband handler. > Correct. > Looking at xnthread_relax(), the same should apply to post_wakeup - > provided it is inlined into xnthread_relax - because, again, we won't > leave that function before the signal was sent, thus the work consumed. > Correct. > Am I missing something? > Nope. -- Philippe.