コード例 #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);
 }
コード例 #2
0
 public static void xShutdown(object NotUsed)
 {
     SysEx.UNUSED_PARAMETER(NotUsed);
     Debug.Assert(pcache1 != null);
     pcache1 = null;
 }
コード例 #3
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;
 }
コード例 #4
0
 public static void xShutdown(object NotUsed)
 {
     SysEx.UNUSED_PARAMETER(NotUsed);
     Debug.Assert(pcache1 != null);
     pcache1 = null;
 }