oops, got the sense of the error case wrong
authorSimon Marlow <simonmar@microsoft.com>
Tue, 29 Aug 2006 15:17:51 +0000 (15:17 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Tue, 29 Aug 2006 15:17:51 +0000 (15:17 +0000)
rts/win32/IOManager.c

index 993b1fb..2123b8c 100644 (file)
@@ -340,7 +340,7 @@ depositWorkItem( unsigned int reqID,
        if ( (ioMan->workersIdle < ioMan->queueSize) ) {
            /* No, go ahead and create another. */
            ioMan->numWorkers++;
-           if (NewIOWorkerThread(ioMan)) {
+           if (!NewIOWorkerThread(ioMan)) {
                ioMan->numWorkers--;
            }
        }