[vlc-devel] [PATCH v2 14/18] nacl: Add custom thread implementation

Rémi Denis-Courmont remi at remlab.net
Mon Mar 13 20:35:32 CET 2017


Le maanantaina 13. maaliskuuta 2017, 12.37.00 EET Dennis Hamester a écrit :
> From: Dennis Hamester <dennis.hamester at startmail.com>
> 
> Similar to Android, NaCl has a pthread implementation without support
> for thread cancellation.
> 
> We reuse posix/thread_nocancel and complement that with a custom
> implementation of futexes, which falls back to pthread mutexes and
> condition variables. Actual futexes are not available to regular
> NaCl modules.

Why do you simulate futeces when you could implement condition variables 
directly?

It made sense on Android - because Android supports them natively.

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



More information about the vlc-devel mailing list