Removed a few unneccesary lock calls to get a small speed up.
authorDave West <davew@uncensored.citadel.org>
Sat, 29 Dec 2007 20:10:06 +0000 (20:10 +0000)
committerDave West <davew@uncensored.citadel.org>
Sat, 29 Dec 2007 20:10:06 +0000 (20:10 +0000)
commitb1c467b11cbbfe6e486180777649d4371ea02864
tree9806180b7256a35c81a07806ca4110cd255086d0
parent30b5d31068751a667002061ada19f540e37322f5
Removed a few unneccesary lock calls to get a small speed up.

Changed the calc for load average. Now for the purposes of load averages
sleeping is the same as running since it means the thread can't do
something else in the mean time.

Started a new worker thread style for experimental purposes turn on by
un-commenting the #define NEW_WORKER at the top of threads.c
citadel/threads.c
citadel/threads.h