This commit is contained in:
Nav
2022-03-29 14:54:55 +01:00
parent 97776f12e0
commit 74977804b1
2 changed files with 29 additions and 7 deletions

View File

@@ -89,12 +89,14 @@ namespace Bloom::DebugServers::Gdb
int serverSocketFileDescriptor = -1;
/**
* We don't listen on the this->serverSocketFileDescriptor directly. Instead, we use an EpollInstance to
* monitor both this->serverSocketFileDescriptor and this->interruptEventNotifier. This allows us to interrupt
* any blocking socket IO calls when EventNotifier::notify() is called on this->interruptEventNotifier.
* When waiting for a connection, we don't listen on the this->serverSocketFileDescriptor directly. Instead,
* we use an EpollInstance to monitor both this->serverSocketFileDescriptor and this->interruptEventNotifier.
* This allows us to interrupt any blocking socket IO calls when EventNotifier::notify() is called on
* this->interruptEventNotifier.
*
* See GdbRspDebugServer::init()
* See DebugServer::interruptEventNotifier
* See EpollInstance
* See EventNotifier
*/
EpollInstance epollInstance = EpollInstance();