• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# sqlite3_mutex类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: sqlite3_mutex_notheld

    static bool sqlite3_mutex_notheld(sqlite3_mutex p){
  return p == null || sqlite3GlobalConfig.mutex.xMutexNotheld( p );
}
开发者ID:seeseekey,项目名称:CSCL,代码行数:3,代码来源:mutex_c.cs


示例17: noopMutexLeave

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


示例18: debugMutexEnter

 /*
 ** The sqlite3_mutex_enter() and sqlite3_mutex_try() routines attempt
 ** to enter a mutex.  If another thread is already within the mutex,
 ** sqlite3_mutex_enter() will block and sqlite3_mutex_try() will return
 ** SQLITE_BUSY.  The sqlite3_mutex_try() interface returns SQLITE_OK
 ** upon successful entry.  Mutexes created using SQLITE_MUTEX_RECURSIVE can
 ** be entered multiple times by the same thread.  In such cases the,
 ** mutex must be exited an equal number of times before another thread
 ** can enter.  If the same thread tries to enter any other kind of mutex
 ** more than once, the behavior is undefined.
 */
 static void debugMutexEnter( sqlite3_mutex pX )
 {
     sqlite3_debug_mutex p = (sqlite3_debug_mutex)pX;
       Debug.Assert( p.id == SQLITE_MUTEX_RECURSIVE || debugMutexNotheld( p ) );
       p.cnt++;
 }
开发者ID:RainsSoft,项目名称:CsharpSQLite,代码行数:17,代码来源:mutex_noop_c.cs


示例19: noopMutexTry

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


示例20: debugMutexFree

 /*
 ** This routine deallocates a previously allocated mutex.
 */
 static void debugMutexFree( sqlite3_mutex pX )
 {
     sqlite3_debug_mutex p = (sqlite3_debug_mutex)pX;
       Debug.Assert( p.cnt == 0 );
       Debug.Assert( p.id == SQLITE_MUTEX_FAST || p.id == SQLITE_MUTEX_RECURSIVE );
       //sqlite3_free(ref p);
 }
开发者ID:RainsSoft,项目名称:CsharpSQLite,代码行数:10,代码来源:mutex_noop_c.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# sqlite3_stmt类代码示例发布时间:2022-05-24
下一篇:
C# sqlite3_file类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap