[ECOS] cyg_semaphore_post

Jonathan Larmour jlarmour@redhat.com
Wed Feb 13 05:49:00 GMT 2002

"Woller, Thomas" wrote:
> we are also wondering how to handle the non-priority based (ie.
> FIFO based) waiting under eCos. when there are a series of
> threads waiting on the same semaphore, we basically want the
> highest priority thread to run, NOT the first one that happened
> to wait on the semaphore.  some of our current s/w on another
> RTOS that we are porting over currently supports both FIFO and
> priority based semaphores/mutexes.

You should be able to get this behaviour using the
CYGIMP_KERNEL_SCHED_SORTED_QUEUES option. With this option enabled (it is
by default disabled), thread queues (as used to queue threads waiting for
semaphores) are sorted in thread priority order.

Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

More information about the Ecos-discuss mailing list