Hi folks,
first of all, thanks a lot for your answers !
I have the following problem:
Consider, you have one module with two tasks, a sender and a receiver. The
sender sends a signal via the pthread_cond_signal(...) routine while the
receiver is waiting with the pthread_cond_timedwait(..) routine a
previously specified amount of time. That works fine.
Now, due to design-restrictions, the sender runs in a module A and the
receiver runs in module B.
The mutex and cond-variables are exchanged between the two modules as
addresses. Example:
in Module B:
...
#include <A.h>
pthread_mutex_t mutex;
...
write_mutex ( &mutex ); // write_mutex is defined in A
write_cond ( &cond ); // write_cond is defined in A
...
Now, I thougt, that Module A and B should talk about the SAME mutex and
cond-variable, but unfortunetalety, it does not work ! Why ?
thanks a lot in advance,
Ralf
-- [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/