Procházet zdrojové kódy

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

August Mueller před 14 roky
rodič
revize
86846836bd
1 změnil soubory, kde provedl 3 přidání a 0 odebrání
  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) {