当前位置: 首页>>代码示例>>C#>>正文


C# sqlite3_mutex类代码示例

本文整理汇总了C#中sqlite3_mutex的典型用法代码示例。如果您正苦于以下问题:C# sqlite3_mutex类的具体用法?C# sqlite3_mutex怎么用?C# sqlite3_mutex使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


sqlite3_mutex类属于命名空间,在下文中一共展示了sqlite3_mutex类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: sqlite3_mutex

        public sqlite3_mutex(sqlite3_mutex mutex, int id, int nRef, int owner
#if DEBUG
, int trace
#endif
)
        {
            this.mutex = mutex;
            this.id = id;
            this.nRef = nRef;
            this.owner = owner;
#if DEBUG
            this.trace = 0;
#endif
        }
开发者ID:JiujiangZhu,项目名称:feaserver,代码行数:14,代码来源:sqlite3_mutex.cs

示例2: debugMutexTry

 static int debugMutexTry( sqlite3_mutex pX )
 {
     sqlite3_debug_mutex p = (sqlite3_debug_mutex)pX;
       Debug.Assert( p.id == SQLITE_MUTEX_RECURSIVE || debugMutexNotheld( p ) );
       p.cnt++;
       return SQLITE_OK;
 }
开发者ID:RainsSoft,项目名称:CsharpSQLite,代码行数:7,代码来源:mutex_noop_c.cs

示例3: debugMutexNotheld

 static bool debugMutexNotheld( sqlite3_mutex pX )
 {
     sqlite3_debug_mutex p = (sqlite3_debug_mutex)pX;
       return p == null || p.cnt == 0;
 }
开发者ID:RainsSoft,项目名称:CsharpSQLite,代码行数:5,代码来源:mutex_noop_c.cs

示例4: sqlite3_mutex_enter

 public static void sqlite3_mutex_enter(sqlite3_mutex sqlite3_mutex)
 {
 }
开发者ID:JiujiangZhu,项目名称:feaserver,代码行数:3,代码来源:MutexEx.cs

示例5: sqlite3_mutex_try

		}   //#define sqlite3_mutex_try(X)      SQLITE_OK
		static void sqlite3_mutex_leave(sqlite3_mutex m)
		{
		}            //#define sqlite3_mutex_leave(X)
开发者ID:RainsSoft,项目名称:CsharpSQLite,代码行数:4,代码来源:mutex_h.cs

示例6: sqlite3_mutex_alloc

		}//#define sqlite3_mutex_alloc(X)    ((sqlite3_mutex*)8)
		static void sqlite3_mutex_free(sqlite3_mutex m)
		{
		}          //#define sqlite3_mutex_free(X)
开发者ID:RainsSoft,项目名称:CsharpSQLite,代码行数:4,代码来源:mutex_h.cs

示例7: noopMutexNotheld

 static int noopMutexNotheld(sqlite3_mutex p)
 {
     return 1;
 }
开发者ID:RainsSoft,项目名称:CsharpSQLite,代码行数:4,代码来源:mutex_noop_c.cs

示例8: sqlite3_mutex_try

/*
** Obtain the mutex p. If successful, return SQLITE_OK. Otherwise, if another
** thread holds the mutex and it cannot be obtained, return SQLITE_BUSY.
*/
static int sqlite3_mutex_try(sqlite3_mutex p){
  int rc = SQLITE_OK;
  if( p!=null ){
    return sqlite3GlobalConfig.mutex.xMutexTry(p);
  }
  return rc;
}
开发者ID:seeseekey,项目名称:CSCL,代码行数:11,代码来源:mutex_c.cs

示例9: sqlite3_mutex_leave

/*
** The sqlite3_mutex_leave() routine exits a mutex that was previously
** entered by the same thread.  The behavior is undefined if the mutex 
** is not currently entered. If a NULL pointer is passed as an argument
** this function is a no-op.
*/
static void sqlite3_mutex_leave(sqlite3_mutex p){
  if( p !=null){
    sqlite3GlobalConfig.mutex.xMutexLeave(p);
  }
}
开发者ID:seeseekey,项目名称:CSCL,代码行数:11,代码来源:mutex_c.cs

示例10: sqlite3_mutex_free

/*
** Free a dynamic mutex.
*/
static void sqlite3_mutex_free( sqlite3_mutex p){
  if( p!=null ){
    sqlite3GlobalConfig.mutex.xMutexFree( p);
  }
}
开发者ID:seeseekey,项目名称:CSCL,代码行数:8,代码来源:mutex_c.cs

示例11: sqlite3_mutex_enter

/*
** Obtain the mutex p. If some other thread already has the mutex, block
** until it can be obtained.
*/
static void sqlite3_mutex_enter(sqlite3_mutex p){
  if( p !=null){
    sqlite3GlobalConfig.mutex.xMutexEnter(p);
  }
}
开发者ID:seeseekey,项目名称:CSCL,代码行数:9,代码来源:mutex_c.cs

示例12: sqlite3_mutex_notheld

 public static bool sqlite3_mutex_notheld(sqlite3_mutex sqlite3_mutex)
 {
     return true;
 }
开发者ID:JiujiangZhu,项目名称:feaserver,代码行数:4,代码来源:MutexEx.cs

示例13: sqlite3_mutex_leave

 public static void sqlite3_mutex_leave(sqlite3_mutex sqlite3_mutex)
 {
 }
开发者ID:JiujiangZhu,项目名称:feaserver,代码行数:3,代码来源:MutexEx.cs

示例14: sqlite3_mutex_free

 public static void sqlite3_mutex_free(sqlite3_mutex mutex)
 {
 }
开发者ID:JiujiangZhu,项目名称:feaserver,代码行数:3,代码来源:MutexEx.cs

示例15: noopMutexFree

 static void noopMutexFree(sqlite3_mutex p)
 {
 }
开发者ID:RainsSoft,项目名称:CsharpSQLite,代码行数:3,代码来源:mutex_noop_c.cs


注:本文中的sqlite3_mutex类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。