[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] Semaphores in RTLinux V2.0



Hi Christian,

The original ipc module does not work in RTL2 as far as I know. 
However, I recently posted a portable version of the newfifos package
found in RTAI (which also works on RTL V2), this provides a number of
IPC services including mailboxes and semaphore. From the README.FIFOS:

The semaphore services available are:
        - rtf_sem_init(fd, init_val);
        - rtf_sem_wait(fd);
        - rtf_sem_trywait(fd);
        - rtf_sem_timed_wait(fd, ms_delay);
        - rtf_sem_post(fd);
        - rtf_sem_destroy(fd);

I think my original posting was lost while the rtl list was down last
week, but the package can be found at http://www.realtimelinux.org/ if
you follow the links to CRAN it is in the subdirectory called software,
the file is called:

rtai_rtl_fifos-03.tgz

Regards, Stuart


Christian Kramer wrote:
> 
> Hi!
> 
> I would like to use semaphores in my realtime-thread, but the
> semaphore-functionality seems only to be given in RTL Version 1.
> 
> Does the rt_ipc module work in RTL 2 (without stepping back to RTL 1),
> or is there another way to use semaphores?
> 
> Thank you very much,
> 
> Christian
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/