Forráskód Böngészése

I'm starting to think I'm doing this the wrong way.

August Mueller 14 éve
szülő
commit
86846836bd
1 módosított fájl, 3 hozzáadás és 0 törlés
  1. 3 0
      src/FMDatabase.m

+ 3 - 0
src/FMDatabase.m

@@ -24,6 +24,9 @@ + (BOOL)isThreadSafe {
 }
 
 - (id)initWithPath:(NSString*)aPath {
+    
+    assert(sqlite3_threadsafe()); // whoa there big boy- gotta make sure sqlite it happy with what we're going to do.
+    
     self = [super init];
     
     if (self) {