summaryrefslogtreecommitdiff
path: root/lib/Input.cc
diff options
context:
space:
mode:
authorpixel <pixel>2004-07-23 16:56:03 +0000
committerpixel <pixel>2004-07-23 16:56:03 +0000
commiteb44468f13372dea0feef9045ef413911f9e8d5a (patch)
treebd1ee8b3cdd140a808b2af7e33c31f6403dc5cce /lib/Input.cc
parent61a150c500fd64d1eeae74f9abb6829721261d39 (diff)
Beeing more thread safe \(introduced locker\)
Diffstat (limited to 'lib/Input.cc')
-rw-r--r--lib/Input.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Input.cc b/lib/Input.cc
index 88f9343..d6d9ebf 100644
--- a/lib/Input.cc
+++ b/lib/Input.cc
@@ -17,7 +17,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-/* $Id: Input.cc,v 1.46 2004-07-23 09:54:25 pixel Exp $ */
+/* $Id: Input.cc,v 1.47 2004-07-23 16:56:03 pixel Exp $ */
#include <stdio.h>
#include <string.h>
@@ -103,6 +103,8 @@ Input::Input(const String & no) throw (GeneralException) :
results = gresults;
+ UNLOCK
+
fromarchive = false;
if (results.name == "") {
struct stat s;
@@ -188,6 +190,7 @@ off_t Input::seek(off_t offset, int whence) throw (GeneralException) {
}
int Input::wrapopen(const String & fname, openresults_t * results) {
+ LOCK;
#ifdef DEBUG
printm(M_INFO, _("Wrap-opening ") + fname + "\n");
#endif