GCOV Execution Analysis for lock.c

The left column is the number of times the code was executed during the unit test suites.

Exec CodeLine #
 
Source:lock.c
1
 
Graph:.libs/lock.gcno
2
 
Data:.libs/lock.gcda
3
 
Runs:378
4
 
Programs:378
5
 
/*      -*- linux-c -*-
6
 
 *
7
 
 * Copyright (c) 2003 by Intel Corp.
8
 
 * (C) Copyright IBM Corp. 2003
9
 
 *
10
 
 * This program is distributed in the hope that it will be useful,
11
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  This
13
 
 * file and program are licensed under a BSD style license.  See
14
 
 * the Copying file included with the OpenHPI distribution for
15
 
 * full licensing terms.
16
 
 *
17
 
 * Authors:
18
 
 *     Louis Zhuang < address removed >
19
 
 */
20
 
#include <oh_lock.h>
21
 
22
 
int oh_will_block = 0;
23
 
24
 
#ifdef HAVE_THREAD_SAFE
25
 
/* multi-threading support, use Posix mutex for data access */
26
 
/* initialize mutex used for data locking */
27
 
#include <glib/gthread.h>
28
 
29
 
GStaticRecMutex oh_main_lock = G_STATIC_REC_MUTEX_INIT;
30
 
31
 
int data_access_block_times(void)
32
0 
{
33
0 
        return(oh_will_block);
34
 
}
35
 
36
 
#else
37
 
38
 
GStaticRecMutex oh_main_lock = NULL;
39
 
40
 
int data_access_block_times(void){ return(0);}
41
 
42
 
#endif/*HAVE_THREAD_SAFE*/
43