Exemple #1
0
//Copy sqlite3_mutex_methods from existing 
      public void Copy( sqlite3_mutex_methods cp )
      {
        Debug.Assert( cp != null );
        this.xMutexInit = cp.xMutexInit;
        this.xMutexEnd = cp.xMutexEnd;
        this.xMutexAlloc = cp.xMutexAlloc;
        this.xMutexFree = cp.xMutexFree;
        this.xMutexEnter = cp.xMutexEnter;
        this.xMutexTry = cp.xMutexTry;
        this.xMutexLeave = cp.xMutexLeave;
        this.xMutexHeld = cp.xMutexHeld;
        this.xMutexNotheld = cp.xMutexNotheld;
      }
Exemple #2
0
 public sqlite3_mutex_methods(
   dxMutexInit xMutexInit,
   dxMutexEnd xMutexEnd,
   dxMutexAlloc xMutexAlloc,
   dxMutexFree xMutexFree,
   dxMutexEnter xMutexEnter,
   dxMutexTry xMutexTry,
   dxMutexLeave xMutexLeave,
   dxMutexHeld xMutexHeld,
   dxMutexNotheld xMutexNotheld
   )
 {
   this.xMutexInit = xMutexInit;
   this.xMutexEnd = xMutexEnd;
   this.xMutexAlloc = xMutexAlloc;
   this.xMutexFree = xMutexFree;
   this.xMutexEnter = xMutexEnter;
   this.xMutexTry = xMutexTry;
   this.xMutexLeave = xMutexLeave;
   this.xMutexHeld = xMutexHeld;
   this.xMutexNotheld = xMutexNotheld;
 }