]> 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)
commit12ab776bd195fe749c8d700819019017ecc42344
tree60b6076f0ea0de7f75508ab30eee2f7ad34c5d90
parent828bce6bf5ebe478531aacd9a8f0e03e75117795
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