NCBI C++ ToolKit
Functions | Variables
mutex1.c File Reference
#include <config.h>
#include <stdio.h>
#include <freetds/thread.h>
#include <freetds/macros.h>
#include <freetds/test_assert.h>
+ Include dependency graph for mutex1.c:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

static TDS_THREAD_PROC_DECLARE (trylock_proc, arg)
 
static void test (tds_mutex *mtx)
 
int main (void)
 

Variables

static tds_mutex mtx = TDS_MUTEX_INITIALIZER
 

Function Documentation

◆ main()

int main ( void  )

Definition at line 91 of file mutex1.c.

References exit(), local, mtx, tds_mutex, tds_mutex_free, tds_mutex_init, and test().

◆ TDS_THREAD_PROC_DECLARE()

static TDS_THREAD_PROC_DECLARE ( trylock_proc  ,
arg   
)
static

Definition at line 37 of file mutex1.c.

References mtx, tds_mutex, tds_mutex_trylock, and TDS_THREAD_RESULT.

◆ test()

static void test ( tds_mutex mtx)
static

Definition at line 50 of file mutex1.c.

References exit(), mtx, tds_mutex_trylock, tds_mutex_unlock, TDS_PTR2INT, tds_thread_create, tds_thread_join, and th.

Referenced by main().

Variable Documentation

◆ mtx

Definition at line 35 of file mutex1.c.

Referenced by main(), TDS_THREAD_PROC_DECLARE(), and test().

Modified on Sun May 19 04:43:10 2024 by modify_doxy.py rev. 669887