> > I need a semaphore or similar to signal from periodic task initialization
> > is needed. The concept of semaphores are weel known for me but in Linuxcnc
> > I found several implements, ordinary posix, rt_sem, rcs_sem_t. Any idea
> > which "implementation" is best to use?
> >
> 
> I have no idea, but I did find this (very old) example:
> https://github.com/LinuxCNC/linuxcnc/tree/master/src/rtapi/examples/semaphore

I decided standard posix sem_ini(...) sem_wait(...) sem_getvalue(...) 
sem_post(...) was a good idea ant it works great. As is now it is only used to 
put device in operational mode but it should also be able to handle non real 
time communication then there is a need or good idea to insert into the message 
sent periodically. Do not know how the rtapi_ semaphore is implemented but 
maybe tommorow I get an hour to look at it.


Nicklas Karlsson


_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to