Skip to contentSkip to conversation

IPIPE mutex?

Adeos-main Florian Pose 2 participants 2 messages May 9, 2006

lore
Share & tools
lore
#0 lore raw

Hello everybody,

I'm using an IPIPE domain for a cyclic realtime task and I have a cyclic kernel timer applet running in the default domain. This two processes now share a common resource. So I have to use some locking method, that ensures, that if the process with the lower priority (e. g. the kernel timer) holds the lock and the process with the higher priority (RT task) is scheduled, the first one is scheduled again until it releases the lock.

In ADEOS there is a adeos_mutex_lock() call seeming to do exactly what I want. Unfortunately IPIPE doesn't seem to have such a call.

How do I solve the problem with IPIPE?

Thanks a lot,
Florian

#1 lore raw
Quoted 9 lines · Florian Pose

Hello everybody,

I'm using an IPIPE domain for a cyclic realtime task and I have a cyclic kernel timer applet running in the default domain. This two processes now share a common resource. So I have to use some locking method, that ensures, that if the process with the lower priority (e. g. the kernel timer) holds the lock and the process with the higher priority (RT task) is scheduled, the first one is scheduled again until it releases the lock.

Quoted 5 lines

In ADEOS there is a adeos_mutex_lock() call seeming to do exactly what I want. Unfortunately IPIPE doesn't seem to have such a call.

How do I solve the problem with IPIPE?

The only way is to provide your own support for that. The I-pipe is just a simple and straightforward real-time enabler a RTOS can use to build complex services. E.g. www.xenomai.org.

Signature · 1 line
Philippe.