* [Xenomai-help] test if primary mode
@ 2011-06-01 16:23 Jeff Weber
2011-06-01 18:03 ` Gilles Chanteperdrix
0 siblings, 1 reply; 2+ messages in thread
From: Jeff Weber @ 2011-06-01 16:23 UTC (permalink / raw)
To: xenomai
[-- Attachment #1: Type: text/plain, Size: 142 bytes --]
What is the best call for a user space thread to learn if it is running in
primary or secondary mode? (I am using POSIX skin.)
thanks,
Jeff
[-- Attachment #2: Type: text/html, Size: 177 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Xenomai-help] test if primary mode
2011-06-01 16:23 [Xenomai-help] test if primary mode Jeff Weber
@ 2011-06-01 18:03 ` Gilles Chanteperdrix
0 siblings, 0 replies; 2+ messages in thread
From: Gilles Chanteperdrix @ 2011-06-01 18:03 UTC (permalink / raw)
To: Jeff Weber; +Cc: xenomai
On 06/01/2011 06:23 PM, Jeff Weber wrote:
> What is the best call for a user space thread to learn if it is running in
> primary or secondary mode? (I am using POSIX skin.)
If what you want to know is whether a thread switched to secondary mode
and you did not want it, you may, with pthread_set_mode_np, ask to
receive a signal when this happen.
Any other usage is frowned upon.
--
Gilles.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-01 18:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01 16:23 [Xenomai-help] test if primary mode Jeff Weber
2011-06-01 18:03 ` Gilles Chanteperdrix
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.