Shiv Chawla
2011-10-24 14:42:39 UTC
Hello
I was reading this post "strand-like priority queues"
http://comments.gmane.or/gmane.comp.lib.boost.asio.user/3531
and I found it very useful.
I am new to asio library and writing big program in c++. So I apologize if I am
not clear. I have a question related to prioritization.
Q1. How to get the execution status of a handler? If there are multiple
asynchronous functions and I need to dispatch one after the completion of
another, then how should I go about it? For ex:
void generateNumbers() //generates two numbers
{}
void swapNumbers() //Swap numbers..Swap has to wait for generate numbers
{}
I am working with an API with asynchronous functions where I send request to the
server and based on the result of request, I send another request. Now, deriving
from the above mentioned post, I can prioritize the function execution but I
need to know the status of first function. Is there any way with asio?
Thanks
Shiv
I was reading this post "strand-like priority queues"
http://comments.gmane.or/gmane.comp.lib.boost.asio.user/3531
and I found it very useful.
I am new to asio library and writing big program in c++. So I apologize if I am
not clear. I have a question related to prioritization.
Q1. How to get the execution status of a handler? If there are multiple
asynchronous functions and I need to dispatch one after the completion of
another, then how should I go about it? For ex:
void generateNumbers() //generates two numbers
{}
void swapNumbers() //Swap numbers..Swap has to wait for generate numbers
{}
I am working with an API with asynchronous functions where I send request to the
server and based on the result of request, I send another request. Now, deriving
from the above mentioned post, I can prioritize the function execution but I
need to know the status of first function. Is there any way with asio?
Thanks
Shiv