mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
merging gxs_phase2 branch
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6401 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
1150366913
commit
325fa4f222
116 changed files with 6050 additions and 3596 deletions
|
@ -82,7 +82,7 @@ public:
|
|||
bool clean();
|
||||
|
||||
/*!
|
||||
* TODO: Rather manual progressions consider running through a thread
|
||||
* TODO: Rather than manual progressions consider running through a thread
|
||||
*/
|
||||
void run(){}
|
||||
|
||||
|
@ -93,5 +93,40 @@ private:
|
|||
std::vector<RsGxsGrpMetaData*> mGrpMeta;
|
||||
};
|
||||
|
||||
/*!
|
||||
* Checks the integrity message and groups
|
||||
* in rsDataService using computed hash
|
||||
*/
|
||||
class RsGxsIntegrityCheck : public RsThread
|
||||
{
|
||||
|
||||
enum CheckState { CheckStart, CheckChecking };
|
||||
|
||||
public:
|
||||
|
||||
|
||||
/*!
|
||||
*
|
||||
* @param dataService
|
||||
* @param mGroupTS
|
||||
* @param chunkSize
|
||||
* @param sleepPeriod
|
||||
*/
|
||||
RsGxsIntegrityCheck(RsGeneralDataService* const dataService);
|
||||
|
||||
|
||||
bool check();
|
||||
bool isDone();
|
||||
|
||||
void run();
|
||||
|
||||
private:
|
||||
|
||||
RsGeneralDataService* const mDs;
|
||||
std::vector<RsNxsItem*> mItems;
|
||||
bool mDone;
|
||||
RsMutex mIntegrityMutex;
|
||||
|
||||
};
|
||||
|
||||
#endif /* GXSUTIL_H_ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue