In the demo program, when the data writer sends a data, it calls NDDS_Utility_sleep (), whether it can be delayed or not?

3 posts / 0 new
Last post
Offline
Last seen: 7 years 3 months ago
Joined: 08/13/2017
Posts: 2
In the demo program, when the data writer sends a data, it calls NDDS_Utility_sleep (), whether it can be delayed or not?
Offline
Last seen: 7 years 2 months ago
Joined: 08/16/2017
Posts: 2

According to my experience,  I think it can be delayed.

Gerardo Pardo's picture
Offline
Last seen: 1 week 3 days ago
Joined: 06/02/2010
Posts: 602

I do not fully understand the question. This is just a demo/example program. It calls NDDS_Utility_sleep() because it has nothing else to do and if it was writing data as fast as it could (without sleeping) it would take 100% of the computer CPU and overwhelm the network stack.

A real application would be doing something and only send data using DDS whenever it needs to. Therefore it woud not need to call NDDS_Utility_sleep()...

Gerardo