Author: rfm
Date: Thu Mar 17 21:11:29 2016
New Revision: 39561
URL: http://svn.gna.org/viewcvs/gnustep?rev=39561&view=rev
Log:
allow filesystem locks to wait a lot longer in case we are on a very slow system
Modified:
libs/base/trunk/Source/NSUserDefaults.m
Modified: libs/base/trunk/Source/NSUserDefaults.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSUserDefaults.m?rev=39561&r1=39560&r2=39561&view=diff
==============================================================================
--- libs/base/trunk/Source/NSUserDefaults.m (original)
+++ libs/base/trunk/Source/NSUserDefaults.m Thu Mar 17 21:11:29 2016
@@ -2345,14 +2345,14 @@
/*
* In case we have tried and failed to break the lock,
- * we give up after a while ... 16 seconds should give
- * us three lock breaks if we do them at 5 second
+ * we give up after a while ... 66 seconds should give
+ * us three lock breaks if we do them at 20 second
* intervals.
*/
- if ([when timeIntervalSinceDate: started] > 16.0)
+ if ([when timeIntervalSinceDate: started] > 66.0)
{
- fprintf(stderr, "Failed to lock user defaults database even
after "
- "breaking old locks!\n");
+ fprintf(stderr, "Failed to lock user defaults database"
+ " even after breaking old locks!\n");
RELEASE(arp);
break;
}
@@ -2362,7 +2362,7 @@
* problem we do an idle wait rather than a busy one.
*/
if (lockDate != nil
- && [when timeIntervalSinceDate: lockDate] > 5.0)
+ && [when timeIntervalSinceDate: lockDate] > 20.0)
{
NSLog(@"NSUserdefaults file lock at %@ is dated %@ ...
break",
_fileLock, lockDate);
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs