[vlc-devel] [PATCH] Threads deadlock number
Damien Fouilleul
damien.fouilleul at laposte.net
Wed Sep 5 18:43:03 CEST 2007
pthread_getthreadid_np() is the 'proper' solution but it is not
implemented on all platforms (hence the _np)
Pierre d'Herbemont wrote:
> On Sep 5, 2007, at 6:07 PM, Rafaël Carré wrote:
>
>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Jean-Baptiste Kempf a écrit :
>>
>>> Hi,
>>>
>>> I think that CAST_PTHREAD_TO_INT returns a unsigned long int, so this
>>> patch changes the message displayed in the deadlock thing
>>> accordingly.
>>> Is it right? Wrong ?
>>> gtz,
>>>
>> the casted value is only stored in int, so i guess it should be casted
>> to int.
>>
>
> I don't think so, pthread_t is implementation dependent and could be
> a long long (on 64bits more probably).
>
> Pierre.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> http://mailman.videolan.org/listinfo/vlc-devel
>
More information about the vlc-devel
mailing list