[FFmpeg-devel] [PATCH] Reimplementation of OS/2 threads model

Ramiro Polla ramiro.polla
Wed Apr 28 17:36:22 CEST 2010


2010/4/28 M?ns Rullg?rd <mans at mansr.com>:
> Ramiro Polla <ramiro.polla at gmail.com> writes:
>> On Wed, Apr 28, 2010 at 11:45 AM, KO Myung-Hun <komh at chollian.net> wrote:
>>> But now pthreads codes are in os2thread.c, so pthread lib is
>>> unnecessary. And we can use all the codes of pthread.c without modifying
>>> it at all. If possible, I would like to use '#include "pthread.c"' using
>>> some guard macros. This reduces the maintenance burden you are saying.
>>
>> Could you not make that code a simple library with a subset of
>> pthreads that ffmpeg needs? You could then link against that library
>> with the current pthreads code in FFmpeg.
>
> But a perfectly good pthread library _already exists_.

Yes, but maybe it has a higher overhead.

> Why can't we
> just link to that instead of duplicating the effort.

Either way (using his code or the one that already exists) it should
be possible to remove the os/2 specific code from ffmpeg.



More information about the ffmpeg-devel mailing list