mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:47:35 +00:00
Allow character devices to block write attempts until there is more space.
This commit is contained in:
parent
49b63281a0
commit
e452303c66
21 changed files with 39 additions and 7 deletions
|
@ -16,6 +16,8 @@ public:
|
|||
|
||||
bool is_empty() const { return m_read_buffer_index >= m_read_buffer->size() && m_write_buffer->is_empty(); }
|
||||
|
||||
size_t bytes_in_write_buffer() const { return m_write_buffer->size(); }
|
||||
|
||||
private:
|
||||
void flip();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue