mirror of
https://github.com/asterisk/asterisk.git
synced 2026-06-09 03:45:27 +00:00
To terminate a console channel, stop_stream causes pthread_cancel to make stream_monitor exit. However, commit5b8fea93d1added locking to this function which results in deadlock due to the stream_monitor thread being killed while it's holding the pvt lock. To resolve this, a flag is now set and read to indicate abort, so the use of pthread_cancel and pthread_kill can be avoided altogether. Resolves: #308 (cherry picked from commit3b027d1e47)
41 KiB
41 KiB