[vlc-devel] [PATCH 2/7] objects: add vlc_object_set_module
Thomas Guillem
thomas at gllm.fr
Tue May 28 12:13:57 CEST 2019
On Tue, May 28, 2019, at 11:57, Rémi Denis-Courmont wrote:
> I don't think racy is okay for debugging, no. Debugging code should not add bugs.
A lot of people seems to disagree with you (cf. previous discussions and trac). I'm not talking about adding new "bugs", but about restoring our good old "bugs" back to get a feature that was used a lot. There is a huge difference. Specially, since we didn't had the chance to review this removal.
Having said that, I don't see bugs in my branch. There is no race anymore when you could get dead object returned by vlc_list_children. There is a just a race between object and object module name.
>
> Besides, I don't see how you can have an object whose type and lifecycle is unknown so the problem is moot.
>
> Le 28 mai 2019 11:56:25 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>>
>> On Tue, May 28, 2019, at 10:48, Rémi Denis-Courmont wrote:
>>> Hi,
>>>
>>> To get the name of a loaded module call module_get_name() on the module pointer. To get the name of your own module, use MODULE_STRING. To get the name of a module used by somebody else's object, use vlc_object_get_name() but that's intrinsically racy and unreliable.
>>
>> As already said, racy and unreliable is ok for debugging purpose.
>> As already said, cf. PATCH 7/7: vlc_object_get_name() doesn't work when module are loaded with vlc_module_load().
>>
>>>
>>> Le 28 mai 2019 11:24:11 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>>>>
>>>> On Tue, May 28, 2019, at 10:03, Rémi Denis-Courmont wrote:
>>>>> The "feature"(s) of getting the name of a module and getting the module
>>>>> of an object are still there. No news here.
>>>>
>>>> How do you get the module of an object ? Did you see 7/7 ?
>>>>
>>>> >
>>>>> This patchset is removing one of the two ways to get there though.
>>>>>
>>>>> Le 28 mai 2019 09:39:22 GMT+03:00, Thomas Guillem <thomas at gllm.fr> a écrit :
>>>>>> On Mon, May 27, 2019, at 18:41, Rémi Denis-Courmont wrote:
>>>>>>> Le maanantaina 27. toukokuuta 2019, 19.15.56 EEST Thomas Guillem a
>>>>>> écrit :
>>>>>>>> I mean I can store the module name instead of the module.
>>>>>>> We already store the module name in the object.
>>>>>>>
>>>>>>> Leaving aside that it's a racy ugly hack, it's already there without
>>>>>> needing
>>>>>>> any changes.
>>>>>> It's just a hack that I try to put back in order to restore a feature.
>>>>>> No news here.
>>>>>>
>>>>>>> --
>>>>>>> 雷米‧德尼-库尔蒙
>>>>>>> http://www.remlab.net/vlc-devel mailing list
>>>>>>> To unsubscribe or modify your subscription options:
>>>>>>> https://mailman.videolan.org/listinfo/vlc-devel
>>>>>> vlc-devel mailing list
>>>>>> To unsubscribe or modify your subscription options:
>>>>>> https://mailman.videolan.org/listinfo/vlc-devel
>>>>> --
>>>>> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser
>>>>> ma brièveté.vlc-devel mailing list
>>>>> To unsubscribe or modify your subscription options:
>>>>> https://mailman.videolan.org/listinfo/vlc-devel
>>>> vlc-devel mailing list
>>>> To unsubscribe or modify your subscription options:
>>>> https://mailman.videolan.org/listinfo/vlc-devel
>>>
>>> --
>>> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> https://mailman.videolan.org/listinfo/vlc-devel
>>
>
> --
> Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20190528/9d95f7f6/attachment.html>
More information about the vlc-devel
mailing list