zeromq / ingescape

Model-based framework for broker-free distributed software environments. Any language, any OS, web, cloud.
Other
61 stars 14 forks source link

Problem: igs timer callback is not thread safe #78

Closed roumieu closed 1 year ago

roumieu commented 1 year ago

Timer callback can be executed at the same time as another thread calls the igs_timer_stop method and thus access a freed pointer of an igs_timer_t.

Solution: Add same mutex as in creation/deletion in the timeout callback to access the igs_timer_t