本文整理汇总了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
}
示例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;
}
示例3: debugMutexNotheld
static bool debugMutexNotheld( sqlite3_mutex pX )
{
sqlite3_debug_mutex p = (sqlite3_debug_mutex)pX;
return p == null || p.cnt == 0;
}
示例4: sqlite3_mutex_enter
public static void sqlite3_mutex_enter(sqlite3_mutex sqlite3_mutex)
{
}
示例5: sqlite3_mutex_try
} //#define sqlite3_mutex_try(X) SQLITE_OK
static void sqlite3_mutex_leave(sqlite3_mutex m)
{
} //#define sqlite3_mutex_leave(X)
示例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)
示例7: noopMutexNotheld
static int noopMutexNotheld(sqlite3_mutex p)
{
return 1;
}
示例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;
}
示例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);
}
}
示例10: sqlite3_mutex_free
/*
** Free a dynamic mutex.
*/
static void sqlite3_mutex_free( sqlite3_mutex p){
if( p!=null ){
sqlite3GlobalConfig.mutex.xMutexFree( p);
}
}
示例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);
}
}
示例12: sqlite3_mutex_notheld
public static bool sqlite3_mutex_notheld(sqlite3_mutex sqlite3_mutex)
{
return true;
}
示例13: sqlite3_mutex_leave
public static void sqlite3_mutex_leave(sqlite3_mutex sqlite3_mutex)
{
}
示例14: sqlite3_mutex_free
public static void sqlite3_mutex_free(sqlite3_mutex mutex)
{
}
示例15: noopMutexFree
static void noopMutexFree(sqlite3_mutex p)
{
}