summaryrefslogtreecommitdiff
path: root/indra/newview/lleventpoll.h
diff options
context:
space:
mode:
authorRider Linden <none@none>2015-04-08 10:17:34 -0700
committerRider Linden <none@none>2015-04-08 10:17:34 -0700
commit1c91c8a106a78f2087a3fb4312e428a0128283b4 (patch)
tree1f80ff372a3a9c2670049f76cde4d6782661dfe9 /indra/newview/lleventpoll.h
parentfe34b3ef725b83af0deeffcf8bf6ef9769224e8d (diff)
Adding weak pointer support.
Event polling as a coroutine. (incomplete) Groundwork for canceling HttpCoroutineAdapter yields.
Diffstat (limited to 'indra/newview/lleventpoll.h')
-rwxr-xr-xindra/newview/lleventpoll.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/indra/newview/lleventpoll.h b/indra/newview/lleventpoll.h
index e8d98062aa..4b9944724d 100755
--- a/indra/newview/lleventpoll.h
+++ b/indra/newview/lleventpoll.h
@@ -28,9 +28,20 @@
#define LL_LLEVENTPOLL_H
#include "llhttpclient.h"
+#include "boost/move/unique_ptr.hpp"
+
+namespace boost
+{
+ using ::boost::movelib::unique_ptr; // move unique_ptr into the boost namespace.
+}
class LLHost;
+namespace
+{
+ class LLEventPollImpl;
+}
+
class LLEventPoll
///< implements the viewer side of server-to-viewer pushed events.
@@ -40,11 +51,15 @@ public:
///< Start polling the URL.
virtual ~LLEventPoll();
- ///< will stop polling, cancelling any poll in progress.
+ ///< will stop polling, canceling any poll in progress.
private:
+#if 1
+ boost::unique_ptr<LLEventPollImpl> mImpl;
+#else
LLHTTPClient::ResponderPtr mImpl;
+#endif
};