mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-11 02:25:34 -04:00
added load/save for hash cache in the proper place
This commit is contained in:
parent
52ef7adfae
commit
7b566f2c55
6 changed files with 51 additions and 21 deletions
|
@ -55,8 +55,8 @@ public:
|
|||
private:
|
||||
void clean() ;
|
||||
|
||||
void save() ;
|
||||
void load() ;
|
||||
void locked_save() ;
|
||||
void locked_load() ;
|
||||
|
||||
bool readHashStorageInfo(const unsigned char *data,uint32_t total_size,uint32_t& offset,HashStorageInfo& info) const;
|
||||
bool writeHashStorageInfo(unsigned char *& data,uint32_t& total_size,uint32_t& offset,const HashStorageInfo& info) const;
|
||||
|
@ -85,5 +85,6 @@ private:
|
|||
RsMutex mHashMtx ;
|
||||
bool mRunning;
|
||||
uint32_t mInactivitySleepTime ;
|
||||
time_t mLastSaveTime ;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue