Author: rfm
Date: Wed May 7 18:36:06 2014
New Revision: 37853
URL: http://svn.gna.org/viewcvs/gnustep?rev=37853&view=rev
Log:
tweaks
Modified:
libs/sqlclient/trunk/SQLClient.m
Modified: libs/sqlclient/trunk/SQLClient.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/sqlclient/trunk/SQLClient.m?rev=37853&r1=37852&r2=37853&view=diff
==============================================================================
--- libs/sqlclient/trunk/SQLClient.m (original)
+++ libs/sqlclient/trunk/SQLClient.m Wed May 7 18:36:06 2014
@@ -62,10 +62,8 @@
#include "SQLClient.h"
#if defined(GNUSTEP_BASE_LIBRARY)
-#include <GNUstepBase/GSLock.h>
#define SUBCLASS_RESPONSIBILITY [self subclassResponsibility: _cmd];
#else
-#define GSLazyRecursiveLock NSRecursiveLock
#define SUBCLASS_RESPONSIBILITY
#endif
@@ -972,7 +970,7 @@
{
clientsMap = NSCreateMapTable(NSObjectMapKeyCallBacks,
NSNonRetainedObjectMapValueCallBacks, 0);
- clientsMapLock = [GSLazyRecursiveLock new];
+ clientsMapLock = [NSRecursiveLock new];
beginStatement = [[NSArray arrayWithObject: beginString] retain];
commitStatement = [[NSArray arrayWithObject: commitString] retain];
rollbackStatement = [[NSArray arrayWithObject: rollbackString] retain];
@@ -1076,7 +1074,7 @@
[self simpleExecute: beginStatement];
/* NB. We leave the lock locked ... until a matching -commit
* or -rollback is called. This prevents other threads from
- * intefering with this transaction.
+ * interfering with this transaction.
*/
}
NS_HANDLER
@@ -1407,7 +1405,7 @@
existing = (SQLClient*)NSMapGet(clientsMap, reference);
if (existing == nil)
{
- lock = [GSLazyRecursiveLock new]; // Ensure thread-safety.
+ lock = [NSRecursiveLock new]; // Ensure thread-safety.
[self setDebugging: [[self class] debugging]];
[self setDurationLogging: [[self class] durationLogging]];
[self setName: reference]; // Set name and store in cache.
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs