~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to include/IceUtil/AbstractMutex.h

  • Committer: Bazaar Package Importer
  • Author(s): Francisco Moya
  • Date: 2008-02-12 16:28:20 UTC
  • mfrom: (4.1.5 hardy)
  • Revision ID: james.westby@ubuntu.com-20080212162820-x3e046s7nmabeswv
Tags: 3.2.1-8
Added -g to global compilation flags (Closes: #465074).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// **********************************************************************
2
2
//
3
 
// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
 
3
// Copyright (c) 2003-2007 ZeroC, Inc. All rights reserved.
4
4
//
5
5
// This copy of Ice is licensed to you under the terms described in the
6
6
// ICE_LICENSE file included in this distribution.
43
43
 
44
44
    virtual void lock() const
45
45
    {
46
 
        T::lock();
 
46
        T::lock();
47
47
    }
48
48
 
49
49
    virtual void unlock() const
50
50
    {
51
 
        T::unlock();
 
51
        T::unlock();
52
52
    }
53
53
 
54
54
    virtual bool tryLock() const
55
55
    {
56
 
        return T::tryLock();
 
56
        return T::tryLock();
57
57
    }
58
58
 
59
59
    virtual ~AbstractMutexI()
72
72
 
73
73
    virtual void lock() const
74
74
    {
75
 
        T::readLock();
 
75
        T::readLock();
76
76
    }
77
77
 
78
78
    virtual void unlock() const
79
79
    {
80
 
        T::unlock();
 
80
        T::unlock();
81
81
    }
82
82
 
83
83
    virtual bool tryLock() const
84
84
    {
85
 
        return T::tryReadLock();
 
85
        return T::tryReadLock();
86
86
    }
87
87
 
88
88
    virtual ~AbstractMutexReadI()
101
101
 
102
102
    virtual void lock() const
103
103
    {
104
 
        T::writeLock();
 
104
        T::writeLock();
105
105
    }
106
106
 
107
107
    virtual void unlock() const
108
108
    {
109
 
        T::unlock();
 
109
        T::unlock();
110
110
    }
111
111
 
112
112
    virtual bool tryLock() const
113
113
    {
114
 
        return T::tryWriteLock();
 
114
        return T::tryWriteLock();
115
115
    }
116
116
 
117
117
    virtual ~AbstractMutexWriteI()