Project

General

Profile

Statistics
| Branch: | Revision:

root / src / sim / catomicopsdebug.cc @ 3e29b8a0

History | View | Annotate | Download (829 Bytes)

1
//==========================================================================
2
//   CATOMICOPSDEBUG.CC  -  part of
3
//                     Horizon/OMNeT++/OMNEST
4
//            Discrete System Simulation in C++
5
//
6
// Simple lock-based re-implementation of the atomic operations provided by
7
// libatomic-ops for debugging purposes.
8
//
9
//==========================================================================
10

    
11
/*--------------------------------------------------------------*
12
  Copyright (C) 2009 Georg Kunz
13

14
  This file is distributed WITHOUT ANY WARRANTY. See the file
15
  `license' for details on this and other legal matters.
16
*--------------------------------------------------------------*/
17

    
18
#include "catomicopsdebug.h"
19

    
20
//
21
// the giant global lock
22
//
23
pthread_mutex_t global_atomic_ops_debug_mutex = PTHREAD_MUTEX_INITIALIZER;