Thanks for the description of the earlier fix, that confirms my understanding.
I have just confirmed that removing the call to ca_clear_subscription() in the main() function of the program I attached above allows the deadlock to occur in the call to ca_clear_channel() instead.
The fix is thus to describe these limitations in CAref.html on the 3.14 branch. Patches or merge requests are welcome from anyone with the time to do this.
Thanks for the description of the earlier fix, that confirms my understanding.
I have just confirmed that removing the call to ca_clear_ subscription( ) in the main() function of the program I attached above allows the deadlock to occur in the call to ca_clear_channel() instead.
The fix is thus to describe these limitations in CAref.html on the 3.14 branch. Patches or merge requests are welcome from anyone with the time to do this.