You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The select call in the CAN thread does not block. If non-blocking behaviour would be preferred here, what is the point of using a thread at all? sched_yield does not help to drop the cpu much below 100%.
I would have preferred to be able to open the port and not have a thread created on your behalf. The documentation does not even mention that it starts a thread.
If I hack something to tweak the can_tout value in the private data then there is drastic improvement in CPU.
The text was updated successfully, but these errors were encountered:
Due to:
#define LDX_CAN_DEF_TOUT_SEC 0
#define LDX_CAN_DEF_TOUT_USEC 0
The select call in the CAN thread does not block. If non-blocking behaviour would be preferred here, what is the point of using a thread at all? sched_yield does not help to drop the cpu much below 100%.
I would have preferred to be able to open the port and not have a thread created on your behalf. The documentation does not even mention that it starts a thread.
If I hack something to tweak the can_tout value in the private data then there is drastic improvement in CPU.
The text was updated successfully, but these errors were encountered: