Removed duplicate definition of struct Guard.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8325 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5f53a1357a
commit
52ae3f6d24
1 changed files with 0 additions and 15 deletions
|
|
@ -276,21 +276,6 @@ namespace Swig {
|
||||||
# define SWIG_GUARD(mutex)
|
# define SWIG_GUARD(mutex)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct Guard
|
|
||||||
{
|
|
||||||
pthread_mutex_t *_mutex;
|
|
||||||
|
|
||||||
Guard(pthread_mutex_t &mutex) : _mutex(&mutex)
|
|
||||||
{
|
|
||||||
pthread_mutex_lock(_mutex);
|
|
||||||
}
|
|
||||||
|
|
||||||
~Guard()
|
|
||||||
{
|
|
||||||
pthread_mutex_unlock(_mutex);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
/* director base class */
|
/* director base class */
|
||||||
class Director {
|
class Director {
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue