--------------------- PatchSet 11720 Date: 2007/10/08 15:21:14 Author: hno Branch: HEAD Tag: (none) Log: Author: Alexander use THREAD_FACTOR instead of hard coded constant 16. Members: src/fs/aufs/aiops.c:1.31->1.32 src/fs/aufs/aiops_win32.c:1.3->1.4 Index: squid/src/fs/aufs/aiops.c =================================================================== RCS file: /cvsroot/squid/squid/src/fs/aufs/aiops.c,v retrieving revision 1.31 retrieving revision 1.32 diff -u -r1.31 -r1.32 --- squid/src/fs/aufs/aiops.c 23 Sep 2006 10:16:40 -0000 1.31 +++ squid/src/fs/aufs/aiops.c 8 Oct 2007 15:21:14 -0000 1.32 @@ -1,5 +1,5 @@ /* - * $Id: aiops.c,v 1.31 2006/09/23 10:16:40 serassio Exp $ + * $Id: aiops.c,v 1.32 2007/10/08 15:21:14 hno Exp $ * * DEBUG: section 43 AIOPS * AUTHOR: Stewart Forster @@ -322,7 +322,7 @@ /* Create threads and get them to sit in their wait loop */ squidaio_thread_pool = memPoolCreate("aio_thread", sizeof(squidaio_thread_t)); if (squidaio_nthreads == 0) { - int j = 16; + int j = THREAD_FACTOR; for (i = 0; i < n_asyncufs_dirs; i++) { squidaio_nthreads += j; j = j * 2 / 3; @@ -338,7 +338,7 @@ #endif } if (squidaio_nthreads == 0) - squidaio_nthreads = 16; + squidaio_nthreads = THREAD_FACTOR; squidaio_magic1 = squidaio_nthreads * MAGIC1_FACTOR; squidaio_magic2 = squidaio_nthreads * MAGIC2_FACTOR; for (i = 0; i < squidaio_nthreads; i++) { Index: squid/src/fs/aufs/aiops_win32.c =================================================================== RCS file: /cvsroot/squid/squid/src/fs/aufs/aiops_win32.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- squid/src/fs/aufs/aiops_win32.c 23 Sep 2006 10:16:40 -0000 1.3 +++ squid/src/fs/aufs/aiops_win32.c 8 Oct 2007 15:21:14 -0000 1.4 @@ -1,5 +1,5 @@ /* - * $Id: aiops_win32.c,v 1.3 2006/09/23 10:16:40 serassio Exp $ + * $Id: aiops_win32.c,v 1.4 2007/10/08 15:21:14 hno Exp $ * * DEBUG: section 43 Windows AIOPS * AUTHOR: Stewart Forster @@ -322,7 +322,7 @@ /* Create threads and get them to sit in their wait loop */ squidaio_thread_pool = memPoolCreate("aio_thread", sizeof(squidaio_thread_t)); if (squidaio_nthreads == 0) { - int j = 16; + int j = THREAD_FACTOR; for (i = 0; i < n_asyncufs_dirs; i++) { squidaio_nthreads += j; j = j * 2 / 3; @@ -338,7 +338,7 @@ #endif } if (squidaio_nthreads == 0) - squidaio_nthreads = 16; + squidaio_nthreads = THREAD_FACTOR; squidaio_magic1 = squidaio_nthreads * MAGIC1_FACTOR; squidaio_magic2 = squidaio_nthreads * MAGIC2_FACTOR; for (i = 0; i < squidaio_nthreads; i++) {