summaryrefslogtreecommitdiff
path: root/indra/newview/llattachmentsmgr.h
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2015-03-20 11:03:47 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2015-03-20 11:03:47 -0400
commit6fc663d62ad847a6b91029ce9576058cd01a3d68 (patch)
tree9a23b997c8aa40de3b9aeac8b682a33fad27880a /indra/newview/llattachmentsmgr.h
parent779d5ac56e539638d11c80ad6ab5e56b86b0bcb3 (diff)
DRTVWR-397 WIP - logging for detach requests and unexpected detaches (presumably server-initiated)
Diffstat (limited to 'indra/newview/llattachmentsmgr.h')
-rwxr-xr-xindra/newview/llattachmentsmgr.h26
1 files changed, 23 insertions, 3 deletions
diff --git a/indra/newview/llattachmentsmgr.h b/indra/newview/llattachmentsmgr.h
index 4f9efb272f..2834c10a2f 100755
--- a/indra/newview/llattachmentsmgr.h
+++ b/indra/newview/llattachmentsmgr.h
@@ -81,11 +81,27 @@ public:
void requestAttachments(const attachments_vec_t& attachment_requests);
static void onIdle(void *);
- BOOL attachmentWasRequestedRecently(const LLUUID& inv_item_id) const;
- void addAttachmentRequestTime(const LLUUID& inv_item_id);
void onAttachmentArrived(const LLUUID& inv_item_id);
+ void onDetachRequested(const LLUUID& inv_item_id);
+ void onDetachCompleted(const LLUUID& inv_item_id);
+
private:
+
+ class LLItemRequestTimes: public std::map<LLUUID,LLTimer>
+ {
+ public:
+ LLItemRequestTimes(const std::string& op_name, F32 timeout);
+ void addTime(const LLUUID& inv_item_id);
+ void removeTime(const LLUUID& inv_item_id);
+ BOOL wasRequestedRecently(const LLUUID& item_id) const;
+ BOOL getTime(const LLUUID& inv_item_id, LLTimer& timer) const;
+
+ private:
+ F32 mTimeout;
+ std::string mOpName;
+ };
+
void removeAttachmentRequestTime(const LLUUID& inv_item_id);
void onIdle();
void requestPendingAttachments();
@@ -96,11 +112,15 @@ private:
attachments_vec_t mPendingAttachments;
// Attachments that have been requested from server but have not arrived yet.
- std::map<LLUUID,LLTimer> mAttachmentRequests;
+ LLItemRequestTimes mAttachmentRequests;
+
+ // Attachments that have been requested to detach but have not gone away yet.
+ LLItemRequestTimes mDetachRequests;
// Attachments that have arrived but have not been linked in the COF yet.
std::set<LLUUID> mRecentlyArrivedAttachments;
LLTimer mCOFLinkBatchTimer;
+
};
#endif