mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 21:28:14 +00:00
Kernel: Tidy up FileDescriptor members a bit.
This commit is contained in:
parent
123283d840
commit
237628a7a6
5 changed files with 10 additions and 13 deletions
|
@ -51,12 +51,12 @@ FIFO::~FIFO()
|
|||
|
||||
void FIFO::attach(Direction direction)
|
||||
{
|
||||
if (direction == Reader) {
|
||||
if (direction == Direction::Reader) {
|
||||
++m_readers;
|
||||
#ifdef FIFO_DEBUG
|
||||
kprintf("open reader (%u)\n", m_readers);
|
||||
#endif
|
||||
} else if (direction == Writer) {
|
||||
} else if (direction == Direction::Writer) {
|
||||
++m_writers;
|
||||
#ifdef FIFO_DEBUG
|
||||
kprintf("open writer (%u)\n", m_writers);
|
||||
|
@ -66,13 +66,13 @@ void FIFO::attach(Direction direction)
|
|||
|
||||
void FIFO::detach(Direction direction)
|
||||
{
|
||||
if (direction == Reader) {
|
||||
if (direction == Direction::Reader) {
|
||||
#ifdef FIFO_DEBUG
|
||||
kprintf("close reader (%u - 1)\n", m_readers);
|
||||
#endif
|
||||
ASSERT(m_readers);
|
||||
--m_readers;
|
||||
} else if (direction == Writer) {
|
||||
} else if (direction == Direction::Writer) {
|
||||
#ifdef FIFO_DEBUG
|
||||
kprintf("close writer (%u - 1)\n", m_writers);
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue