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

Gianluigi Tiesi mplayer
Tue Apr 20 23:50:57 CEST 2010


On Tue, Apr 20, 2010 at 05:20:09PM +0100, M?ns Rullg?rd wrote:
> Gianluigi Tiesi <mplayer at netfarm.it> writes:
> 
> > 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
> 
> How the f*ck does a threading library end up depending on a socket
> library?


void * pthread_getspecific (pthread_key_t key)

int lasterror = GetLastError ();
int lastWSAerror = WSAGetLastError ();
ptr = TlsGetValue (key->key);
SetLastError (lasterror);
WSASetLastError (lastWSAerror);

looks reasonable, but misses errno :D

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