mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 06:08:10 +00:00
Rename FileDescriptor::has_data_available_for_reading() -> can_read().
This commit is contained in:
parent
a8baee4dcd
commit
8ad2dfb6e1
4 changed files with 6 additions and 6 deletions
|
@ -52,7 +52,7 @@ bool Scheduler::pick_next()
|
|||
if (process.state() == Process::BlockedRead) {
|
||||
ASSERT(process.m_blocked_fd != -1);
|
||||
// FIXME: Block until the amount of data wanted is available.
|
||||
if (process.m_fds[process.m_blocked_fd].descriptor->has_data_available_for_reading(process))
|
||||
if (process.m_fds[process.m_blocked_fd].descriptor->can_read(process))
|
||||
process.unblock();
|
||||
return true;
|
||||
}
|
||||
|
@ -66,7 +66,7 @@ bool Scheduler::pick_next()
|
|||
|
||||
if (process.state() == Process::BlockedSelect) {
|
||||
for (int fd : process.m_select_read_fds) {
|
||||
if (process.m_fds[fd].descriptor->has_data_available_for_reading(process)) {
|
||||
if (process.m_fds[fd].descriptor->can_read(process)) {
|
||||
process.unblock();
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue