I have a network stack which I am using select() on in order to receive from a number of connections. Unfortunately, this means that I have been broken out of the Interruptible model. I need to have a way to break out of the select() if I get a interrupt(). In an older version of the docs that I found (2.2.0) one of the guides mentioned ZThread::Thread::interruptKey(), but that appears to have dissolved in the current version. It is exactly what I would have needed. Is there a way to do this without opening a socket that I close in order to interrupt instead of doing the (more preferrable) Thread::interrupt()? Any help is appreciated.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a network stack which I am using select() on in order to receive from a number of connections. Unfortunately, this means that I have been broken out of the Interruptible model. I need to have a way to break out of the select() if I get a interrupt(). In an older version of the docs that I found (2.2.0) one of the guides mentioned ZThread::Thread::interruptKey(), but that appears to have dissolved in the current version. It is exactly what I would have needed. Is there a way to do this without opening a socket that I close in order to interrupt instead of doing the (more preferrable) Thread::interrupt()? Any help is appreciated.