[vlc-devel] [PATCH 1/2] core: win32: Add a vlc_mta_holder

Rémi Denis-Courmont remi at remlab.net
Mon Jun 12 21:19:55 CEST 2017


Le maanantaina 12. kesäkuuta 2017, 17.12.10 EEST Hugo Beauzée-Luyssen a 
écrit :
> This small helper will hold on to the MTA to ensure it won't be
> destroyed between two calls to CoInitializeEx.
> This will help us not leaking our TA configurations to libvlc/libvlccore
> threads

This still looks racy. The caller can´t know when the thread is actually 
holding the MTA, and it (the caller) can safely release it.

-- 
雷米‧德尼-库尔蒙
https://www.remlab.net/



More information about the vlc-devel mailing list