src/flb_upstream.c
/* Enable thread-safe mode for upstream connection */
Enable thread-safe mode for upstream connection
Enable thread - safe mode for upstream connection
void flb_upstream_thread_safe(struct flb_upstream *u)
{
    u->thread_safe = FLB_TRUE;
    pthread_mutex_init(&u->mutex_lists, NULL);
    mk_list_del(&u->_head);
}
void flb_upstream_thread_safe ( struct flb_upstream * u ) { u -> thread_safe = FLB_TRUE ; pthread_mutex_init ( & u -> mutex_lists , NULL ) ; mk_list_del ( & u -> _head ) ; }
Enable thread-safe mode for upstream connection
Enable thread - safe mode for upstream connection
/*
     * Upon upstream creation, automatically the upstream is linked into
     * the main Fluent Bit context (struct flb_config *)->upstreams. We
     * have to avoid any access to this context outside of the worker
     * thread.
     */