Begun implimentation of a really good thread control interface.
authorDave West <davew@uncensored.citadel.org>
Wed, 21 Nov 2007 02:48:48 +0000 (02:48 +0000)
committerDave West <davew@uncensored.citadel.org>
Wed, 21 Nov 2007 02:48:48 +0000 (02:48 +0000)
commit4b922c4d6262b1b1cc13f13b7e43b8b6ae19751f
tree6e63a0e3bce642e6594431aa4ced40e1a93f3257
parentc0919246bf2026693a4f9e34c306b0dd41cfb546
Begun implimentation of a really good thread control interface.
As it turns out it impliments a lot of what eCrash does to track threads
though I didn't know it at the time. To check it out look in sysdep.c
and search on CtdlThread. That will get you close.
At the moment nothing makes use of this code.
A handy side effect is a thread safe sleep mechanism that will sleep
the current thread untill some other thread sleeps or it times out, needs a
bit more work to make it sleep any thread without waking when another
thread sleeps.
Also fixed a potential memory leak or two in the old thread code.
citadel/housekeeping.c
citadel/parsedate.c
citadel/server.h
citadel/sysdep.c
citadel/sysdep_decls.h