Hi Michael,

Tuesday, November 21, 2000, 3:50:42 PM, you wrote:

>> The mutex and cond-variables are exchanged between the two modules as
>> addresses. Example:
>> 
>> in Module B:
>> ...
>> #include <A.h>
>> pthread_mutex_t mutex;
MB> perhaps it should be
MB> extern pthread_mutex_t mutex; ???

if i got that kernel stuff right, i think that "mutex" should be
exported as a symbol in your object files of the two modules. in one
it should be exported as "defined" and in the other one as
"undefined". you can check this by using nm on the object-files
looking for the name or some wrangled forms of "mutext". there should
be one tagged with "U" and one with "D".
then you have to load the module which defines "mutex" before the one
that needs to define.
i don't know exactly but declaring mutex in the "undefined-module" as
extern should work. but i don't know how to declare it in the other
module. perhaps it is suffiecient to use extern.

---

mailto:[EMAIL PROTECTED]


-- [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