From 52ae3f6d2433a4e1d91dd4835910471d5e4a3dc1 Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Mon, 9 Jan 2006 20:00:56 +0000 Subject: [PATCH] Removed duplicate definition of struct Guard. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8325 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Lib/ruby/director.swg | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/SWIG/Lib/ruby/director.swg b/SWIG/Lib/ruby/director.swg index 1fb7cbb65..ca151206f 100644 --- a/SWIG/Lib/ruby/director.swg +++ b/SWIG/Lib/ruby/director.swg @@ -276,21 +276,6 @@ namespace Swig { # define SWIG_GUARD(mutex) #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 */ class Director { private: