~ubuntu-branches/ubuntu/gutsy/kde4libs/gutsy

« back to all changes in this revision

Viewing changes to threadweaver/Weaver/DebuggingAids.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-02-21 11:00:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070221110012-6kw8khr9knv6lmg1
Tags: 3.80.3-0ubuntu1
New upstream unstable release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- C++ -*-
 
2
 
 
3
   This file implements debugging aids for multithreaded applications.
 
4
 
 
5
   $ Author: Mirko Boehm $
 
6
   $ Copyright: (C) 2004, 2005 Mirko Boehm $
 
7
   $ Contact: mirko@kde.org
 
8
         http://www.kde.org
 
9
         http://www.hackerbuero.org $
 
10
 
 
11
   This library is free software; you can redistribute it and/or
 
12
   modify it under the terms of the GNU Library General Public
 
13
   License as published by the Free Software Foundation; either
 
14
   version 2 of the License, or (at your option) any later version.
 
15
 
 
16
   This library is distributed in the hope that it will be useful,
 
17
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
18
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
19
   Library General Public License for more details.
 
20
 
 
21
   You should have received a copy of the GNU Library General Public License
 
22
   along with this library; see the file COPYING.LIB.  If not, write to
 
23
   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
 
24
   Boston, MA 02110-1301, USA.
 
25
 
 
26
   $Id: DebuggingAids.cpp 20 2005-08-08 21:02:51Z mirko $
 
27
*/
 
28
 
 
29
#include <QMutex>
 
30
 
 
31
#include "DebuggingAids.h"
 
32
#include <kdelibs_export.h>
 
33
 
 
34
/** A global mutex for the ThreadWeaver objects.
 
35
    Generally, you should not use it in your own code. */
 
36
THREADWEAVER_EXPORT QMutex ThreadWeaver::GlobalMutex;
 
37
THREADWEAVER_EXPORT bool ThreadWeaver::Debug = true;
 
38
THREADWEAVER_EXPORT int ThreadWeaver::DebugLevel = 01;