mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
delete information only after successfull unlock
This commit is contained in:
parent
091ce48011
commit
7785a0b5a6
@ -21,7 +21,7 @@
|
||||
***************************************************************************/
|
||||
|
||||
/*!
|
||||
|
||||
|
||||
\brief Container Wrapper class for mutex protected container
|
||||
changed to poco mutex for gradido login server
|
||||
default mutex from poco is recursive so it is some heavy thing
|
||||
@ -47,7 +47,7 @@ namespace UniLib {
|
||||
// \return false if mutex was locked from another thread
|
||||
bool tryLock();
|
||||
|
||||
inline void unlock() { mLastSucceededLock = ""; mWorkMutex.unlock(); }
|
||||
inline void unlock() { mWorkMutex.unlock(); mLastSucceededLock = ""; }
|
||||
|
||||
inline const std::string& getLastSucceededLock() { return mLastSucceededLock; }
|
||||
protected:
|
||||
@ -58,4 +58,4 @@ namespace UniLib {
|
||||
}
|
||||
}
|
||||
|
||||
#endif //__DR_UNIVERSUM_LIB_LIB_MULTITHREAD_CONTAINER_H__
|
||||
#endif //__DR_UNIVERSUM_LIB_LIB_MULTITHREAD_CONTAINER_H__
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user