[vlc-devel] [PATCH 5/6] qt4: Run mainloop on the main thread on OSX

Juho Vähä-Herttua juhovh at iki.fi
Sun Jul 25 00:56:09 CEST 2010


On 25.7.2010, at 0.48, Juho Vähä-Herttua wrote:
>> That thread looks quite useless.
> 
> It looks quite useless, but I plan to use it to start the playlist in the middle of those two sem_wait calls. Also having this thread made it possible to avoid larger changes in the Close() function, because vlc_join works just like before, even though mainloop is actually run on main thread. I know you don't like extra threads, but then again it doesn't really increase the thread count vs. the non-hack code. The other run_on_first_thread hack does though...

Alternative version without the thread attached, confirmed to work the same way. Playing with the semaphore like that feels a bit ugly though.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-qt4-Run-mainloop-on-the-main-thread-on-OSX.patch
Type: application/octet-stream
Size: 2183 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100725/a0c41226/attachment.obj>
-------------- next part --------------



Juho


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4215 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20100725/a0c41226/attachment.bin>


More information about the vlc-devel mailing list