[using  2.2.14-rtl2.3]

Hi!

Programming a DA-Converter I have a time sorted linked list in which output
values and corresponding times are stored.

A realtime-Thread released via the one shot timer outputs the
entries of this list at their according time and removes the entries from
the list.

New entries to this list are entered by a rtf handler. 

How can I manage that while the rtf-handler adds a new entry to the list
the processing realtime-thread ist deferred until linking the new entry into 
the list is completed?

Will it work to use a pthread_mutex in both places or will this lock up the
computer while the realtime-thread waits for the kernel-thread to finish
the adding, which itself is not called while the realtime-thread waits?
(Stated in another way: Will pthread_mutex_lock() allow the scheduler to
schedule non rt (linux kernel priority) code if the mutex is already
locked?)

Or might I simply disable interrupts in the rtf-handler? Is it
possible then that a one time shot-release of the realtime thread
might get lost? If so, can I detect such loss?

        J�rgen
-- 
[EMAIL PROTECTED]
PGP key: http://www.math.uni-goettingen.de/appel/jappel.pgp
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
---
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to