mirror of
https://git.h3cjp.net/H3cJP/yuzu.git
synced 2024-12-16 07:45:33 +00:00
kernel/server_port: Simplify emptiness check within ShouldWait()
This commit is contained in:
parent
b703aba622
commit
474bc29208
|
@ -28,7 +28,7 @@ ResultVal<SharedPtr<ServerSession>> ServerPort::Accept() {
|
||||||
|
|
||||||
bool ServerPort::ShouldWait(Thread* thread) const {
|
bool ServerPort::ShouldWait(Thread* thread) const {
|
||||||
// If there are no pending sessions, we wait until a new one is added.
|
// If there are no pending sessions, we wait until a new one is added.
|
||||||
return pending_sessions.size() == 0;
|
return pending_sessions.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServerPort::Acquire(Thread* thread) {
|
void ServerPort::Acquire(Thread* thread) {
|
||||||
|
|
Loading…
Reference in a new issue