[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

kocienda kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:47:36 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit b95919511b66f9d25b46095cace3d8bb5e94f18d
Author: kocienda <kocienda at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Oct 7 21:06:32 2002 +0000

    	Add a port to the background thread's run loop so it will not exit
    	the run method constantly.
    
            * Database.subproj/WebFileDatabase.m:
            (+[WebFileDatabase _syncLoop:])
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2268 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebKit/Misc.subproj/WebFileDatabase.m b/WebKit/Misc.subproj/WebFileDatabase.m
index 30597f3..b239bbe 100644
--- a/WebKit/Misc.subproj/WebFileDatabase.m
+++ b/WebKit/Misc.subproj/WebFileDatabase.m
@@ -471,6 +471,7 @@ static void URLFileReaderInit(void)
     WebSetThreadPriority(WebMinThreadPriority);
 
     NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+    NSPort *placeholderPort;
 
     BEGIN_EXCEPTION_HANDLER
 
@@ -479,7 +480,10 @@ static void URLFileReaderInit(void)
     while (YES) {
         BEGIN_EXCEPTION_HANDLER
         // we specifically use an NSRunLoop here to get autorelease pool support
-        [[NSRunLoop currentRunLoop] run];
+        placeholderPort = [NSPort port];
+        [syncRunLoop addPort:placeholderPort forMode:NSDefaultRunLoopMode];
+        [syncRunLoop run];
+        [syncRunLoop removePort:placeholderPort forMode:NSDefaultRunLoopMode];
         END_EXCEPTION_HANDLER
     }
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list