summaryrefslogtreecommitdiff
path: root/sys/src/libthread/threadimpl.h
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.
2021-10-12libthread: remove unused _workerdata() prototype from threadimpl.hcinap_lenrek
2021-06-20threadimpl.h: remove Printsize as well (unused)Sigrid Solveig Haflínudóttir
2021-06-20threadimpl: remove unused fields from Proc structSigrid Solveig Haflínudóttir
2015-09-06libthread: get rid of tprivalloc()/tprivfree()/tprivdata() and _workerdata() ↵cinap_lenrek
(thanks qrstuv) these functions where undocumented and unused. especially tprivfree() was buggy missing a unlock() call. theres not much point in supporting these functions as theres threaddata() and procdata().
2015-02-28libthread: remove unused internal functions and old xinc assembler filescinap_lenrek
2011-08-22libthread: reimplemented i/o procs using new interrupt ctl messagecinap_lenrek
2011-03-30Import sources from 2011-03-30 iso image - libTaru Karttunen
2011-03-30Import sources from 2011-03-30 iso imageTaru Karttunen