• Yossi Gottlieb's avatar
    Modules: Add RM_GetDetachedThreadSafeContext(). (#7886) · 907da058
    Yossi Gottlieb authored
    The main motivation here is to provide a way for modules to create a
    single, global context that can be used for logging.
    
    Currently, it is possible to obtain a thread-safe context that is not
    attached to any blocked client by using `RM_GetThreadSafeContext`.
    However, the attached context is not linked to the module identity so
    log messages produced are not tagged with the module name.
    
    Ideally we'd fix this in `RM_GetThreadSafeContext` itself but as it
    doesn't accept the current context as an argument there's no way to do
    that in a backwards compatible manner.
    907da058
misc.c 10 KB