rtlabs-com / c-open

CANopen stack for embedded devices
http://www.rt-labs.com
Other
79 stars 40 forks source link

Synchronize PDO triggering with the c-open main thread #43

Closed nattgris closed 3 years ago

nattgris commented 3 years ago

If a call to trigger a PDO event is done followed by a second job, there's no guarantee that the main thread will have a chance to run and process the PDO job to completion before the common job description struct is overwritten by the next request.

Use the semaphore via the completion callback as for all other jobs.

hefloryd commented 3 years ago

Merged, thanks