
22 Aug
2016
22 Aug
'16
8:37 p.m.
Alan Horstmann wrote:
I am wondering if there is a policy on the thread 'cancelability' / 'cancellability' of the functions in Alsa-lib?
Yes. The policy is "don't even think about it".
The callback runs in it's own thread; when a user requests 'AbortStream' a thread cancel is requested.
Alsa-lib is not the only library with this 'policy'. You cannot cancel threads over whose code you do not have complete control.
Regards, Clemens