|
From: <rm...@us...> - 2007-10-19 18:00:02
|
Update of /cvsroot/aolserver/aolserver/nsd In directory sc8-pr-cvs11.sourceforge.net:/tmp/cvs-serv1579 Modified Files: queue.c Log Message: Previous versions of AOLserver included the threadpool name in the name of the thread. This commit simply adds back that making it easier to figure out what threadpool was used for a request. Index: queue.c =================================================================== RCS file: /cvsroot/aolserver/aolserver/nsd/queue.c,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** queue.c 19 Oct 2007 09:46:38 -0000 1.39 --- queue.c 19 Oct 2007 18:00:01 -0000 1.40 *************** *** 367,371 **** Ns_TlsSet(&ctdtls, dataPtr); Ns_MutexLock(&poolPtr->lock); ! sprintf(name, "-conn:%d-", poolPtr->threads.nextid++); Ns_MutexUnlock(&poolPtr->lock); Ns_ThreadSetName(name); --- 367,371 ---- Ns_TlsSet(&ctdtls, dataPtr); Ns_MutexLock(&poolPtr->lock); ! sprintf(name, "-%s:%d-", poolPtr->name, poolPtr->threads.nextid++); Ns_MutexUnlock(&poolPtr->lock); Ns_ThreadSetName(name); |