Skip to content

init_async_logger사용시 non thread-safe  #2

@banghy

Description

@banghy

init_async_logger사용시 non thread-safe 인것 같습니다.
임시로 cilog_async_sink_t::locked_backend_ptr p = sink->locked_backend(); 를

boost::log::core::get()->add_sink(sink);
cilog_async_sink_t::locked_backend_ptr p = sink->locked_backend();
return sink;

형식으로 해봤더니 thread-safe 는 되는듯 한데 로그 찍히는 순서가 좀 뒤죽박죽이 되네요.
혹시 async 모드에서 thread-safe 가능하게 하는 방법이 없을까요?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions