projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Typo: 'suposidly' -> 'supposedly'.
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
mutex.h
diff --git
a/synfig-core/trunk/src/synfig/mutex.h
b/synfig-core/trunk/src/synfig/mutex.h
index
382072a
..
3497635
100644
(file)
--- a/
synfig-core/trunk/src/synfig/mutex.h
+++ b/
synfig-core/trunk/src/synfig/mutex.h
@@
-2,7
+2,7
@@
/*! \file mutex.h
** \brief Template Header
**
/*! \file mutex.h
** \brief Template Header
**
-** $Id
: mutex.h,v 1.2 2005/01/10 07:40:26 darco Exp
$
+** $Id$
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
**
** \legal
** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley
@@
-43,9
+43,9
@@
class Mutex
protected:
void* blackbox;
protected:
void* blackbox;
-
+
public:
public:
-
+
class Lock
{
Mutex& mutex;
class Lock
{
Mutex& mutex;
@@
-53,19
+53,19
@@
public:
Lock(Mutex& x):mutex(x) { mutex.lock(); }
~Lock() { mutex.unlock(); }
};
Lock(Mutex& x):mutex(x) { mutex.lock(); }
~Lock() { mutex.unlock(); }
};
-
+
Mutex();
~Mutex();
Mutex();
~Mutex();
-
+
void lock();
void unlock();
bool try_lock();
bool is_locked();
void lock();
void unlock();
bool try_lock();
bool is_locked();
-
+
private:
//! Non-copyable
Mutex(const Mutex&);
private:
//! Non-copyable
Mutex(const Mutex&);
-
+
//! Non-assignable
void operator=(const Mutex&);
};
//! Non-assignable
void operator=(const Mutex&);
};
@@
-81,9
+81,9
@@
public:
class RWLock
{
void* blackbox;
class RWLock
{
void* blackbox;
-
+
public:
public:
-
+
class ReaderLock
{
RWLock& rw_lock;
class ReaderLock
{
RWLock& rw_lock;
@@
-98,7
+98,7
@@
public:
WriterLock(RWLock& x):rw_lock(x) { rw_lock.writer_lock(); }
~WriterLock() { rw_lock.writer_unlock(); }
};
WriterLock(RWLock& x):rw_lock(x) { rw_lock.writer_lock(); }
~WriterLock() { rw_lock.writer_unlock(); }
};
-
+
RWLock();
~RWLock();
RWLock();
~RWLock();