Kernel: Make tty overload correct has_data() function
This allows snake game to work again :)
This commit is contained in:
parent
85b1252b9e
commit
f7097398ca
|
@ -40,7 +40,7 @@ namespace Kernel
|
||||||
void putchar(uint8_t ch);
|
void putchar(uint8_t ch);
|
||||||
virtual void putchar_impl(uint8_t ch) = 0;
|
virtual void putchar_impl(uint8_t ch) = 0;
|
||||||
|
|
||||||
bool has_data() const;
|
virtual bool has_data_impl() const override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
TTY(mode_t mode, uid_t uid, gid_t gid)
|
TTY(mode_t mode, uid_t uid, gid_t gid)
|
||||||
|
|
|
@ -328,7 +328,7 @@ namespace Kernel
|
||||||
return count;
|
return count;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TTY::has_data() const
|
bool TTY::has_data_impl() const
|
||||||
{
|
{
|
||||||
LockGuard _(m_lock);
|
LockGuard _(m_lock);
|
||||||
return m_output.flush;
|
return m_output.flush;
|
||||||
|
|
Loading…
Reference in New Issue