I need to wrap a function in a timeout, using ACE in C++. This function is waiting for a response from the OS, and sometimes it does not return.
I cannot modify the function, so I cannot put the abort condition into it directly. I have to add a timeout to the function externally.
I saw a similar question for it in boost - C++: How to implement a timeout for an arbitrary function call?
however, I am using ACE.