All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] RT, nonRT communication
@ 2007-10-30 12:03 Patrick
  2007-10-30 13:29 ` Gilles Chanteperdrix
  0 siblings, 1 reply; 18+ messages in thread
From: Patrick @ 2007-10-30 12:03 UTC (permalink / raw)
  To: xenomai

Ok, so if I understand I can't use a pthread_mutex between the main thread
and a rt_task ?
If I want use pthread_mutex between another pthread and a rt_task, must the
pthred be running with SCHED_OTHER ? This value is the default value for
pthread !

Thank's

-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : mardi, 30. octobre 2007 10:52
À : Patrick
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai-help] TR: RT, nonRT communication

On 10/30/07, Patrick <kpa_info@domain.hid> wrote:
>
>
>
>
> Hi,
>
>
>
> Is it possible to share a pthread_mutex between a rt task and a linux
> pthread ?

No, it is not possible

>
> My two tasks must share resources and I must protect them against
concurrent
> access.
>
> If pthread_mutex is not the correct way to do it can you tell me how to
> achieve this ?

The way to handle these border line cases is to make your linux
pthread a xenomai thread running with the SCHED_OTHER scheduling
policy. Note that the main thread already has this property.

-- 
                                               Gilles Chanteperdrix



^ permalink raw reply	[flat|nested] 18+ messages in thread
* Re: [Xenomai-help] RT, nonRT communication
@ 2007-11-13  7:37 Patrick
  0 siblings, 0 replies; 18+ messages in thread
From: Patrick @ 2007-11-13  7:37 UTC (permalink / raw)
  To: xenomai

Sorry I had answered only to Gilles Chanteperdrix, I forgot you guys :-),
sorry!

PAtrick

-----Message d'origine-----
De : Patrick [mailto:kpa_info@domain.hid
Envoyé : lundi, 12. novembre 2007 17:52
À : 'Gilles Chanteperdrix'
Objet : RE: [Xenomai-help] RT, nonRT communication

Hi,

I have found the problem. The second parameters of rt_task_notify is named
signals and QT define a keywords named signals, and thus the QT pre-compiler

hangs on this declaration. Would it be possible to rename signals to
something like sigs or _signals? 

Thank you,

Patrick

-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org
Envoyé : lundi, 12. novembre 2007 16:49
À : Patrick
Cc : jan.kiszka@domain.hid; xenomai@xenomai.org
Objet : Re: [Xenomai-help] RT, nonRT communication

On Nov 12, 2007 3:00 PM, Patrick <kpa_info@domain.hid> wrote:
>
> Hi,
>
> I have another error when I try to compile Xenomai with g++ :
>
> /usr/xenomai/include/native/task.h:292: error: expected ',' or '...'
before
> 'protected'
>
> I have tried to include this file with and without extern "C" but the
issue
> is the same.
>
> Do you have an idea ?

Please post some example code that we can compile, because simply
#including <native/task.h> in a C++ program works here.


-- 
                                               Gilles Chanteperdrix



^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2007-11-13  7:37 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-30 12:03 [Xenomai-help] RT, nonRT communication Patrick
2007-10-30 13:29 ` Gilles Chanteperdrix
2007-10-31  7:37   ` ROSSIER Daniel
2007-10-31  8:43     ` Gilles Chanteperdrix
2007-11-01 10:04       ` Patrick
2007-11-01 11:14         ` Patrick
2007-11-01 11:23           ` Jan Kiszka
2007-11-01 12:33             ` Patrick
2007-11-01 15:46               ` Patrick
2007-11-01 16:02                 ` Gilles Chanteperdrix
2007-11-12 14:00             ` Patrick
2007-11-12 15:48               ` Gilles Chanteperdrix
2007-11-12 21:20               ` Jan Kiszka
2007-11-01 15:46         ` Gilles Chanteperdrix
2007-11-10 11:25       ` Patrick
2007-11-10 12:24         ` Gilles Chanteperdrix
2007-10-31  9:39     ` Daniel Schnell
  -- strict thread matches above, loose matches on Subject: below --
2007-11-13  7:37 Patrick

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.