nschlia / ffmpegfs

FUSE-based transcoding filesystem with video support from many formats to FLAC, MP4, TS, WebM, OGG, MP3, HLS, and others.
https://nschlia.github.io/ffmpegfs/
GNU General Public License v3.0
198 stars 14 forks source link

"make check" sometimes hangs #31

Closed nschlia closed 5 years ago

nschlia commented 5 years ago

Related to the new thread pool feature:

"make check" sometimes hangs because a thread seems still to be running. Thread synchronisation must be checked and corrected.

nschlia commented 5 years ago

Never happened in normal use cases, but "make check" hung frequently. Reason was that thread start up is now very speedy (using the thread pool). It could happen that a lock was released before it was held by the other thread, causing the message to get lost. Happened especially when the machine had many cores.

Fixed using a lock guard.