OLD | NEW |
1 /* | 1 /* |
2 ** 2005 November 29 | 2 ** 2005 November 29 |
3 ** | 3 ** |
4 ** The author disclaims copyright to this source code. In place of | 4 ** The author disclaims copyright to this source code. In place of |
5 ** a legal notice, here is a blessing: | 5 ** a legal notice, here is a blessing: |
6 ** | 6 ** |
7 ** May you do good and not evil. | 7 ** May you do good and not evil. |
8 ** May you find forgiveness for yourself and forgive others. | 8 ** May you find forgiveness for yourself and forgive others. |
9 ** May you share freely, never taking more than you give. | 9 ** May you share freely, never taking more than you give. |
10 ** | 10 ** |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
322 */ | 322 */ |
323 int sqlite3_vfs_unregister(sqlite3_vfs *pVfs){ | 323 int sqlite3_vfs_unregister(sqlite3_vfs *pVfs){ |
324 #if SQLITE_THREADSAFE | 324 #if SQLITE_THREADSAFE |
325 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); | 325 sqlite3_mutex *mutex = sqlite3MutexAlloc(SQLITE_MUTEX_STATIC_MASTER); |
326 #endif | 326 #endif |
327 sqlite3_mutex_enter(mutex); | 327 sqlite3_mutex_enter(mutex); |
328 vfsUnlink(pVfs); | 328 vfsUnlink(pVfs); |
329 sqlite3_mutex_leave(mutex); | 329 sqlite3_mutex_leave(mutex); |
330 return SQLITE_OK; | 330 return SQLITE_OK; |
331 } | 331 } |
OLD | NEW |