mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04:00
Changed in Libresapi: Used Doxigen style comments
This commit is contained in:
parent
d53993c2a0
commit
575a416ee9
2 changed files with 27 additions and 7 deletions
|
@ -34,8 +34,10 @@ public:
|
||||||
FileSharingHandler(StateTokenServer* sts, RsFiles* files, RsNotify& notify);
|
FileSharingHandler(StateTokenServer* sts, RsFiles* files, RsNotify& notify);
|
||||||
~FileSharingHandler();
|
~FileSharingHandler();
|
||||||
|
|
||||||
// from NotifyClient
|
/**
|
||||||
// note: this may get called from foreign threads
|
Derived from NotifyClient
|
||||||
|
This function may be called from foreign thread
|
||||||
|
*/
|
||||||
virtual void notifyListChange(int list, int type);
|
virtual void notifyListChange(int list, int type);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
@ -55,10 +57,19 @@ private:
|
||||||
|
|
||||||
void handleDownload(Request& req, Response& resp);
|
void handleDownload(Request& req, Response& resp);
|
||||||
|
|
||||||
StateToken mLocalDirStateToken; // Token indicating change in local shared files
|
/// Token indicating change in local shared files
|
||||||
StateToken mRemoteDirStateToken; // Token indicating change in remote (friends') shared files
|
StateToken mLocalDirStateToken;
|
||||||
|
|
||||||
|
/// Token indicating change in remote (friends') shared files
|
||||||
|
StateToken mLocalDirStateToken;
|
||||||
|
|
||||||
StateTokenServer* mStateTokenServer;
|
StateTokenServer* mStateTokenServer;
|
||||||
RsMutex mMtx; // Inherited virtual functions of NotifyClient may be called from foreing thread
|
|
||||||
|
/**
|
||||||
|
Protects mLocalDirStateToken and mLocalDirStateToken that may be changed in foreign thread
|
||||||
|
@see FileSharingHandler::notifyListChange(...)
|
||||||
|
*/
|
||||||
|
RsMutex mMtx;
|
||||||
|
|
||||||
RsFiles* mRsFiles;
|
RsFiles* mRsFiles;
|
||||||
RsNotify& mNotify;
|
RsNotify& mNotify;
|
||||||
|
|
|
@ -16,11 +16,15 @@ public:
|
||||||
TransfersHandler(StateTokenServer* sts, RsFiles* files, RsPeers *peers, RsNotify& notify);
|
TransfersHandler(StateTokenServer* sts, RsFiles* files, RsPeers *peers, RsNotify& notify);
|
||||||
virtual ~TransfersHandler();
|
virtual ~TransfersHandler();
|
||||||
|
|
||||||
// from NotifyClient
|
/**
|
||||||
// may be called from foreign thread
|
Derived from NotifyClient
|
||||||
|
This function may be called from foreign thread
|
||||||
|
*/
|
||||||
virtual void notifyListChange(int list, int type);
|
virtual void notifyListChange(int list, int type);
|
||||||
|
|
||||||
// from Tickable
|
// from Tickable
|
||||||
virtual void tick();
|
virtual void tick();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void handleWildcard(Request& req, Response& resp);
|
void handleWildcard(Request& req, Response& resp);
|
||||||
void handleControlDownload(Request& req, Response& resp);
|
void handleControlDownload(Request& req, Response& resp);
|
||||||
|
@ -32,7 +36,12 @@ private:
|
||||||
RsPeers* mRsPeers;
|
RsPeers* mRsPeers;
|
||||||
RsNotify& mNotify;
|
RsNotify& mNotify;
|
||||||
|
|
||||||
|
/**
|
||||||
|
Protects mStateToken that may be changed in foreign thread
|
||||||
|
@see TransfersHandler::notifyListChange(...)
|
||||||
|
*/
|
||||||
RsMutex mMtx;
|
RsMutex mMtx;
|
||||||
|
|
||||||
StateToken mStateToken;
|
StateToken mStateToken;
|
||||||
time_t mLastUpdateTS;
|
time_t mLastUpdateTS;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue