On Wednesday 24 October 2001 01:29, Massimiliano Cialdi wrote:
> "Thamm, Russell" wrote:
> > I want to use semaphores for communication between 2 realtime
> > processes.
> >
> > The obvious choice is to use named semaphores but RtLinux doesn't
> > seem to support
> > sem_open (despite what the doco says).
> >
> > Does RtLinux support named semaphores?
> >
> > If not, how are two separate processes able to get a reference to the
> > same semaphore?
>
> I have the same problem: I need to synchronize two process (in two
> separate modules) using the same semaphore.

Actually, the answer lies in the fact that the "processes" are actually 
*threads* - even if started from separate modules. That is, they can 
share variables as if they were threads of a "normal" process. References 
are resolved through the kernel symbol table as modules are loaded.

Of course, for a symbol reference to be resolved, someone must first 
export it to the symbol table. Either have one of the modules handle the 
instance, while the other(s) just reference it, or create a dedicated 
"globals.o" module to put shared stuff in.


//David Olofson --- Programmer, Reologica Instruments AB

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------------> http://www.linuxdj.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`-------------------------------------> http://olofson.net -'
-- [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/

Reply via email to