Page 1 of 1

NIL with events

Posted: Sat Apr 18, 2015 6:21 am
by M1Sports20
I haven't really deep a deep dive in the code yet, but I was looking into NIL.

Does NIL support registering a thread with an event and then having a thread wait until an event was posted. For example, could I use the sdu driver with NIL.
I noticed events are a little bit different betwen NIL and RT.

Thanks

Re: NIL with events

Posted: Sat Apr 18, 2015 6:41 am
by Giovanni
Hi,

In the NIL OSAL, event sources are implemented with callbacks, from callbacks it is possible to chEvtSignalI() specific threads. There is no registration, it is the callbacks code deciding which threads should be notified, the result is the same.

Giovanni

Re: NIL with events

Posted: Tue Apr 21, 2015 3:37 am
by M1Sports20
Thanks for you description.

It works perfectly.