event/MultiSocketMonitor: add method ClearSocketList()
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "MultiSocketMonitor.hxx"
|
||||
#include "Loop.hxx"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
@@ -35,6 +36,14 @@ MultiSocketMonitor::~MultiSocketMonitor()
|
||||
// TODO
|
||||
}
|
||||
|
||||
void
|
||||
MultiSocketMonitor::ClearSocketList()
|
||||
{
|
||||
assert(GetEventLoop().IsInsideOrNull());
|
||||
|
||||
fds.clear();
|
||||
}
|
||||
|
||||
#ifndef WIN32
|
||||
|
||||
void
|
||||
|
Reference in New Issue
Block a user