Revision: 14579
Author: adrian.chadd
Date: Sat Apr 10 20:04:40 2010
Log: Issue #94 - bring win32 aiops thread config into parallel with unix aiops


http://code.google.com/p/lusca-cache/source/detail?r=14579

Modified:
 /branches/LUSCA_HEAD/libasyncio/aiops_win32.c

=======================================
--- /branches/LUSCA_HEAD/libasyncio/aiops_win32.c       Sat Apr 10 19:44:28 2010
+++ /branches/LUSCA_HEAD/libasyncio/aiops_win32.c       Sat Apr 10 20:04:40 2010
@@ -84,6 +84,8 @@
 int squidaio_magic1 = 1;       /* dummy initializer value */
 int squidaio_magic2 = 1;       /* real value set in aiops.c */

+int aiops_default_ndirs = 0;
+
 static void squidaio_queue_request(squidaio_request_t *);
 static void squidaio_cleanup_request(squidaio_request_t *);
 static DWORD WINAPI squidaio_thread_loop(LPVOID lpParam);
@@ -208,7 +210,7 @@
squidaio_thread_pool = memPoolCreate("aio_thread", sizeof(squidaio_thread_t));
     if (squidaio_nthreads == 0) {
        int j = THREAD_FACTOR;
-       for (i = 0; i < n_asyncufs_dirs; i++) {
+       for (i = 0; i < aiops_default_ndirs; i++) {
            squidaio_nthreads += j;
            j = j * 2 / 3;
            if (j < 4)

--
You received this message because you are subscribed to the Google Groups 
"lusca-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/lusca-commit?hl=en.

Reply via email to