Revision: 27871
http://sourceforge.net/p/bibdesk/svn/27871
Author: hofman
Date: 2022-09-07 22:21:56 +0000 (Wed, 07 Sep 2022)
Log Message:
-----------
add to value atomically
Modified Paths:
--------------
trunk/bibdesk/BDSKZoomGroupServer.m
Modified: trunk/bibdesk/BDSKZoomGroupServer.m
===================================================================
--- trunk/bibdesk/BDSKZoomGroupServer.m 2022-09-07 22:06:46 UTC (rev 27870)
+++ trunk/bibdesk/BDSKZoomGroupServer.m 2022-09-07 22:21:56 UTC (rev 27871)
@@ -328,9 +328,8 @@
if(numResults > 0){
NSArray *records = [resultSet recordsInRange:NSMakeRange([self
numberOfFetchedResults], numResults)];
- NSInteger newNumberOfFetchedResults = [self
numberOfFetchedResults] + numResults;
- atomic_store(&fetchedResults, newNumberOfFetchedResults);
+ atomic_fetch_add(&fetchedResults, numResults);
results = [NSMutableArray array];
for (id result in records) {
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