Implement multi phase commit asynchronously in c++
up vote
-2
down vote
favorite
In my c++ class method I need:
1) send multiple requests to service A (main thread)
2) wait for all async responses handled in lambda (async callbacks)
3) notify service B if all the responses are successful (async)
Steps 2-3 need to be done asynchronously also to not block the main thread.
Whats the best data structure in std cpp would work here?
c++ multithreading lambda asynccallback
add a comment |
up vote
-2
down vote
favorite
In my c++ class method I need:
1) send multiple requests to service A (main thread)
2) wait for all async responses handled in lambda (async callbacks)
3) notify service B if all the responses are successful (async)
Steps 2-3 need to be done asynchronously also to not block the main thread.
Whats the best data structure in std cpp would work here?
c++ multithreading lambda asynccallback
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
In my c++ class method I need:
1) send multiple requests to service A (main thread)
2) wait for all async responses handled in lambda (async callbacks)
3) notify service B if all the responses are successful (async)
Steps 2-3 need to be done asynchronously also to not block the main thread.
Whats the best data structure in std cpp would work here?
c++ multithreading lambda asynccallback
In my c++ class method I need:
1) send multiple requests to service A (main thread)
2) wait for all async responses handled in lambda (async callbacks)
3) notify service B if all the responses are successful (async)
Steps 2-3 need to be done asynchronously also to not block the main thread.
Whats the best data structure in std cpp would work here?
c++ multithreading lambda asynccallback
c++ multithreading lambda asynccallback
asked Nov 10 at 21:59
Steve Roy
44
44
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53243828%2fimplement-multi-phase-commit-asynchronously-in-c%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown