Skip to contentSkip to conversation

Condition variable

Xenomai-core ROSSIER Daniel 2 participants 2 messages Jun 23, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,

Is there a particular reason to enforce the queuing policy to the "highest priority" thread for a variable condition?

I would expect that we can also specify a FIFO queue at the creation mode of such an object, as it is the case

of other synchronization objects.

Thanks for your help.

Daniel

#1 lore raw
Quoted 9 lines · ROSSIER Daniel

Hi all,

Is there a particular reason to enforce the queuing policy to the "highest priority" thread for a variable condition?

The reason was that condvar support for the native skin should closely follow the POSIX behaviour, which uses the scheduling policy to define the pending order of threads blocked on mutexes/condvars.

Quoted 3 lines

I would expect that we can also specify a FIFO queue at the creation mode of such an object, as it is the case
of other synchronization objects.

The problem I see is that a condvar must be associated with a mutex, and since a mutex must be pended on by priority and exhibits priority inheritance by construction, I would find rather strange to have part of the synchronization combo behave in fifo mode, whilst the other part enforces prio mode.

Quoted 16 lines

Thanks for your help.

Daniel

_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core

Signature · 1 line
Philippe.