Commit ef4348d5 authored by jan.koester's avatar jan.koester
Browse files

remoevd lock exp

parent 83fae00b
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -36,7 +36,6 @@ netplus::NetException::NetException() {
};

netplus::NetException::NetException(const NetException &exp){
    const std::lock_guard<std::mutex> lock(mlock);
    msg=exp.msg;
    curCType = exp.curCType;
}
@@ -45,17 +44,14 @@ netplus::NetException::~NetException(){
}

int netplus::NetException::getErrorType(){
    const std::lock_guard<std::mutex> lock(mlock);
    return curCType; 
}

const char* netplus::NetException::what(){
    const std::lock_guard<std::mutex> lock(mlock);
    return msg.c_str();
}

netplus::NetException& netplus::NetException::append(const char *src){
    const std::lock_guard<std::mutex> lock(mlock);
    msg.append(src);
    return *this;   
}
+0 −1
Original line number Diff line number Diff line
@@ -65,7 +65,6 @@ namespace netplus {
    private:
        int curCType;
        std::string msg;
        std::mutex  mlock;
    };
};