Ignore:
Timestamp:
2023-02-07T16:03:05Z (15 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1eaead4
Parents:
5110d0a
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-07 15:59:26)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2023-02-07 16:03:05)
Message:

Use the semaphore interface instead of waitq in some places

Since we already have an underused semaphore API in the kernel,
it would be worthwhile to use it in places where the baseline
semaphore semantics are needed. It makes the function of the
calls obvious even to people unfamiliar with the details of
waitq API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/console/chardev.h

    r5110d0a r7c5320c  
    3939#include <stdbool.h>
    4040#include <stddef.h>
    41 #include <synch/waitq.h>
     41#include <synch/semaphore.h>
    4242#include <synch/spinlock.h>
    4343
     
    6464typedef struct indev {
    6565        const char *name;
    66         waitq_t wq;
     66        semaphore_t wq;
    6767
    6868        /** Protects everything below. */
Note: See TracChangeset for help on using the changeset viewer.