Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init_async_logger사용시 non thread-safe #2

Open
banghy opened this issue Feb 9, 2017 · 0 comments
Open

init_async_logger사용시 non thread-safe #2

banghy opened this issue Feb 9, 2017 · 0 comments

Comments

@banghy
Copy link

banghy commented Feb 9, 2017

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 가능하게 하는 방법이 없을까요?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant