Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I assign multiple callbacks to a "CAN network" object

Is it somehow possible to assign more than onw callback to a CAN network object using the ncCreateNotification function.
I tried and only the first callback seems to receive a notification.
0 Kudos
Message 1 of 2
(3,280 Views)
Hello ka_rsat

You can only create one callback per object (per ObjHandle).
The documentation for ncCreateNotification mentions that '...you cannot invoke ncWaitForState twice from different threads for the same object.' and '...ncWaitForState and ncCreateNotification functions use the same underlying implementation.'.

This (somewhat) implies that the same limitation applies to the ncCreateNotification function.

-B2k
0 Kudos
Message 2 of 2
(3,272 Views)