Revision: 29643
          http://sourceforge.net/p/bibdesk/svn/29643
Author:   hofman
Date:     2025-09-29 15:56:22 +0000 (Mon, 29 Sep 2025)
Log Message:
-----------
schedule update notifications on main queue from async queue, only the delegate 
call needs to be on the main thread

Modified Paths:
--------------
    trunk/bibdesk/BDSKNotesSearchIndex.m

Modified: trunk/bibdesk/BDSKNotesSearchIndex.m
===================================================================
--- trunk/bibdesk/BDSKNotesSearchIndex.m        2025-09-29 15:06:12 UTC (rev 
29642)
+++ trunk/bibdesk/BDSKNotesSearchIndex.m        2025-09-29 15:56:22 UTC (rev 
29643)
@@ -109,9 +109,8 @@
     [self clearQueue];
 }
 
-- (void)searchIndexDidUpdate
+- (void)didUpdate
 {
-    BDSKASSERT([NSThread isMainThread]);
     // Make sure we send frequently enough to update a progress bar, but not 
too frequently to avoid beachball on single-core systems; too many search 
updates slow down indexing due to repeated flushes.
     if (NO == atomic_load(&updateScheduled)) {
         CGFloat updateDelay = 0.1;
@@ -123,15 +122,6 @@
     }
 }
 
-- (void)didUpdate
-{
-    if (NO == atomic_load(&updateScheduled)) {
-        dispatch_async(dispatch_get_main_queue(), ^{
-            [self searchIndexDidUpdate];
-        });
-    }
-}
-
 - (void)processAddItemNotification:(NSNotification *)note
 {
     NSArray *items = [[note userInfo] 
valueForKeyPath:@"publications.searchIndexInfo"];

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to