Skip to content

Commit 505cbe4

Browse files
committed
event/SocketEvent: add method ScheduleAnyHangup()
1 parent e8d1304 commit 505cbe4

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/event/SocketEvent.hxx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,14 @@ public:
176176
Schedule(IMPLICIT_FLAGS);
177177
}
178178

179+
/**
180+
* Schedule #ANY_HANGUP (in addition to events that may
181+
* already be scheduled).
182+
*/
183+
void ScheduleAnyHangup() noexcept {
184+
Schedule(GetScheduledFlags() | ANY_HANGUP);
185+
}
186+
179187
#ifdef USE_EPOLL
180188
/**
181189
* Cancel READ but schedule READ_HANGUP. This is useful to be

0 commit comments

Comments
 (0)