summaryrefslogtreecommitdiff
path: root/sys/src/libthread/note.c
AgeCommit message (Collapse)Author
2021-10-13libthread: fix debug prints, simplifycinap_lenrek
Do the debuglevel check before calling the print function for _threaddebug, by making it a macro. Do not waste cycles passing arguments. Generalize the _threaddebug function into _threadprint() and add a varargcheck pragma. This function can also be used from _threadassert(). Fix missing arguments in one case, fix trailing newlines in _threaddebug(). Make _threadgetproc()/_threadsetproc() a macro, just dereferencing Proc**_threadprocp. Simplify the mainjump, just call _threadsetproc() directly without that mainp dance. Remove the _schedinit() argument, it uses _threadgetproc() now. Get rid of Mainarg struct, just have a global variable for argc.
2011-10-02libdraw: shutdown keyboard and mouseprocs with threadint, libthread: avoid ↵glenda
delayed note leak (this fixes the "too many delayed notes" error with auth/fgui)
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen