dankamongmen / panelreels

high-level objects built atop ncurses
https://nick-black.com/dankwiki/index.php/Outcurses
Apache License 2.0
8 stars 1 forks source link

All panelreel functions need use command queue #46

Open dankamongmen opened 4 years ago

dankamongmen commented 4 years ago

Functions like panelreel_next() can encounter the same issues driving tablet_update(): they're presumably called whilst holding some application lock, need to take the panelreel lock when called, and can then call back into the application. Boom, deadlock (without a recursive mutex). They should instead use the same mechanism as update_tablet().