[FFmpeg-devel] [RFC] Removing non-pthreads support

Gianluigi Tiesi mplayer
Tue Apr 20 18:04:00 CEST 2010


On Mon, Apr 19, 2010 at 11:29:44PM -0300, Ramiro Polla wrote:
> this is my latest patch against pthreads-win32 CVS 20091019. compiles
> and links and works fine with both gcc and msvc (the later was asked
> by an ffms2 dev) and any combination of those 2. what it does is:
> - remove the false wsock32 dependency

the dep is not false :D


> - remove the requirement for PTW32_STATIC_LIB to be defined for using
> the library in mingw32 (like faac did)
> - hint the linker (currently gcc and msvc) to run the initialization
> code before main() or DllMain().

declspec constructor/destructor
are enough, just register pthread process attach/detch

also I've made /lib/libpthread.a
as:

GROUP (-lpthreadGC2 -lws2_32)


so it will act like unix

> 
> I'm not sending them upstream myself (busy/lazy), but feel free to
> split them up and send them...


pthreads_win32 upstream? looks unmaintained


Regards


-- 
Gianluigi Tiesi <sherpya at netfarm.it>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/



More information about the ffmpeg-devel mailing list