]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
refactor: generic wait queue abstraction (waitqueue.h)
authorTulio A M Mendes <[email protected]>
Wed, 11 Feb 2026 22:32:55 +0000 (19:32 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 02:20:50 +0000 (23:20 -0300)
commit4ba2edcceaa0271e4b21613e3ec2c9ccf5b446b5
treed09f80be720ac06b02b65c65f160dd70dfbfc212
parent89f47c694258d1d2a196ae17af0a4ccba7fced7a
refactor: generic wait queue abstraction (waitqueue.h)

- include/waitqueue.h: reusable waitqueue_t with wq_init/push/pop/wake_one/wake_all
- src/kernel/tty.c: refactored to use waitqueue_t instead of ad-hoc arrays
- src/kernel/pty.c: refactored to use waitqueue_t instead of ad-hoc arrays
- Removed duplicate waitq_push/waitq_pop/waitq_empty/waitq_wake_one from both files
- cppcheck clean, 19/19 smoke tests pass
include/waitqueue.h [new file with mode: 0644]
src/kernel/pty.c
src/kernel/tty.c