Added a new command line option to citserver "-s" takes a numerical parameter.
authorDave West <davew@uncensored.citadel.org>
Mon, 2 Nov 2009 13:15:52 +0000 (13:15 +0000)
committerDave West <davew@uncensored.citadel.org>
Mon, 2 Nov 2009 13:15:52 +0000 (13:15 +0000)
commit84f1a0f0ac232d9b6b9b785dd515701245a95acd
tree194dc86319a92bbad1d234e87dd956f7ff5e2007
parented8becec1e34344122a658ccc7a8518c405cbdb2
Added a new command line option to citserver "-s" takes a numerical parameter.
When this is specified with a number greater than 0 the server will start
almost as normal except it will not start any workers or module related
threads.
Instead it will create the specified number of simulation threads and time
how long it takes for them to be created, create a context, delete the
context and get cleaned up. A message is written to the log stating how long
it took and then the server will exit normally.

This is to help tune the client connection code and thread creation stuff.
citadel/server_main.c
citadel/threads.c
citadel/threads.h