Example #1
0
 public static RC xInit(object NotUsed)
 {
     SysEx.UNUSED_PARAMETER(NotUsed);
     Debug.Assert(pcache1 == null);
     pcache1 = new PCacheGlobal();
     if (sqlite3GlobalConfig_bCoreMutex)
     {
         pcache1.grp.mutex = MutexEx.sqlite3_mutex_alloc(MutexEx.MUTEX.STATIC_LRU);
         pcache1.mutex     = MutexEx.sqlite3_mutex_alloc(MutexEx.MUTEX.STATIC_PMEM);
     }
     pcache1.grp.mxPinned = 10;
     return(RC.OK);
 }
 public static void xShutdown(object NotUsed)
 {
     SysEx.UNUSED_PARAMETER(NotUsed);
     Debug.Assert(pcache1 != null);
     pcache1 = null;
 }
 public static RC xInit(object NotUsed)
 {
     SysEx.UNUSED_PARAMETER(NotUsed);
     Debug.Assert(pcache1 == null);
     pcache1 = new PCacheGlobal();
     if (sqlite3GlobalConfig_bCoreMutex)
     {
         pcache1.grp.mutex = MutexEx.sqlite3_mutex_alloc(MutexEx.MUTEX.STATIC_LRU);
         pcache1.mutex = MutexEx.sqlite3_mutex_alloc(MutexEx.MUTEX.STATIC_PMEM);
     }
     pcache1.grp.mxPinned = 10;
     return RC.OK;
 }
Example #4
0
 public static void xShutdown(object NotUsed)
 {
     SysEx.UNUSED_PARAMETER(NotUsed);
     Debug.Assert(pcache1 != null);
     pcache1 = null;
 }