[vlc-devel] [PATCH v2 02/18] Rename android/thread.c to posix/thread_nocancel.c

Rémi Denis-Courmont remi at remlab.net
Mon Mar 13 21:03:42 CET 2017


Le maanantaina 13. maaliskuuta 2017, 20.37.57 EET Dennis Hamester a écrit :
> This change was discussed and agreed upon with Thomas on irc.
> 
> Are you referring to my wording here or about supporting a posix'ish
> platform without cancellation support?

The src/posix/ directory is about the worst possible place for exclusively 
non-POSIX code. At least, Darwin and Linux kernels are trying, and yet we don
´t even put their specific support in src/posix/ (anymore).

> If I remember correctly, _you_
> implemented the work-around with futexes for missing cancel in Android.

I don´t perceive the topicality...

In any case, futexes seem to be the most straightforward and efficient 
solution to provide POSIX-like condition variables on Android. Effectively 
they just bypass the half-assed Bionic, and reimplement the same but 
"correctly".

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



More information about the vlc-devel mailing list