Monotone-Parent: 8373ee4a182606382fcb3aea7864b142db4aaa95
Monotone-Revision: 4b7309393c3e0f0f0211dde1161875de6f69a117 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-12-15T22:23:40 Monotone-Branch: ca.inverse.sogomaint-2.0.2
parent
72efdaa9a1
commit
7bad646b76
|
@ -58,12 +58,14 @@ static NSLock *lock;
|
|||
|
||||
@implementation SOGoCache
|
||||
|
||||
#if defined(THREADSAFE)
|
||||
+ (void) initialize
|
||||
{
|
||||
#if defined(THREADSAFE)
|
||||
lock = [NSLock new];
|
||||
}
|
||||
#endif
|
||||
s_userDefaults = [[NSMutableDictionary alloc] init];
|
||||
s_userSettings = [[NSMutableDictionary alloc] init];
|
||||
}
|
||||
|
||||
+ (NSTimeInterval) cleanupInterval
|
||||
{
|
||||
|
@ -105,9 +107,6 @@ static NSLock *lock;
|
|||
cache = [[NSMutableDictionary alloc] init];
|
||||
users = [[NSMutableDictionary alloc] init];
|
||||
|
||||
s_userDefaults = [[NSMutableDictionary alloc] init];
|
||||
s_userSettings = [[NSMutableDictionary alloc] init];
|
||||
|
||||
// We register ourself for notifications
|
||||
[[NSDistributedNotificationCenter defaultCenter]
|
||||
addObserver: self
|
||||
|
|
Loading…
Reference in New Issue