-
Notifications
You must be signed in to change notification settings - Fork 0
Prototype C++ multi-threaded output plugin #1
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
base: master
Are you sure you want to change the base?
Conversation
This might be accessed by multiple threads during FLB_OUTPUT_RETURN
This reverts commit b79cb3c.
|
|
||
| /* Get the authorization token */ | ||
| std::unique_lock<std::mutex> lock(ctx->mutex); | ||
| char* c_token = get_google_token(plg_ctx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to token mutex
| } | ||
|
|
||
|
|
||
| extern "C" void stackdriver_cpp_flush(struct flb_stackdriver * plg_ctx, struct flb_thread* calling_thread, const char* data, size_t data_len, const char* tag, int tag_len) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Document lifetime of variables and thread control
|
This PR is stale because it has been open 45 days with no activity. Remove stale label or comment or this will be closed in 10 days. |
This is a prototype C++ multi threading implementation for the stackdriver output plugin.
It uses boost::asio and boost::beast, which use openssl. However, the code currently does not use
async IO. One further improvement is to do that. boost::asio supports a lot of ways to do that.