summaryrefslogtreecommitdiff
path: root/textproc/xmltooling/patches/patch-xmltooling_util_Threads.h
blob: 6fadf1e147fed34ce3ddaa4cd0482f4f12b803fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
$NetBSD: patch-xmltooling_util_Threads.h,v 1.1 2013/09/17 21:16:16 joerg Exp $

--- xmltooling/util/Threads.h.orig	2013-09-17 20:39:26.000000000 +0000
+++ xmltooling/util/Threads.h
@@ -30,7 +30,6 @@
 #include <xmltooling/exceptions.h>
 
 #include <memory>
-#include <boost/scoped_ptr.hpp>
 #include <signal.h>
 
 namespace xmltooling
@@ -317,16 +316,6 @@ namespace xmltooling
         }
 
         /**
-         * Locks and wraps the designated mutex.
-         *
-         * @param mtx mutex to lock
-         */
-        Lock(const boost::scoped_ptr<Mutex>& mtx) : mutex(mtx.get()) {
-            if (mutex)
-                mutex->lock();
-        }
-
-        /**
          * Unlocks the wrapped mutex, if any.
          */
         ~Lock() {
@@ -378,17 +367,6 @@ namespace xmltooling
         }
 
         /**
-         * Locks and wraps the designated shared lock.
-         *
-         * @param lock      lock to acquire
-         * @param lockit    true if the lock should be acquired here, false if already acquired
-         */
-        SharedLock(const boost::scoped_ptr<RWLock>& lock, bool lockit=true) : rwlock(lock.get()) {
-            if (rwlock && lockit)
-                rwlock->rdlock();
-        }
-
-        /**
          * Unlocks the wrapped shared lock, if any.
          */
         ~SharedLock() {