diff options
author | Monty Brandenberg <monty@lindenlab.com> | 2012-06-21 21:32:33 -0400 |
---|---|---|
committer | Monty Brandenberg <monty@lindenlab.com> | 2012-06-21 21:32:33 -0400 |
commit | ed5db306545e414a1c975c1fff5908b6c2fe1389 (patch) | |
tree | 9bc2aed2a3ef7fa2d7a49ebc67a64f63890d24e0 /indra/llcorehttp/_httprequestqueue.h | |
parent | eed28348f2668c93bc572cffd8a284e65228ed02 (diff) |
Preparing for better shutdown/cleanup logic.
Diffstat (limited to 'indra/llcorehttp/_httprequestqueue.h')
-rw-r--r-- | indra/llcorehttp/_httprequestqueue.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/indra/llcorehttp/_httprequestqueue.h b/indra/llcorehttp/_httprequestqueue.h index 26d7d9dca6..6e8f00c4da 100644 --- a/indra/llcorehttp/_httprequestqueue.h +++ b/indra/llcorehttp/_httprequestqueue.h @@ -30,6 +30,7 @@ #include <vector> +#include "httpcommon.h" #include "_refcounted.h" #include "_mutex.h" @@ -74,11 +75,11 @@ public: /// Insert an object at the back of the reply queue. /// - /// Caller my provide one refcount to the Library which takes + /// Caller must provide one refcount to the queue which takes /// possession of the count. /// /// Threading: callable by any thread. - void addOp(HttpOperation * op); + HttpStatus addOp(HttpOperation * op); /// Caller acquires reference count on returned operation /// @@ -89,6 +90,11 @@ public: /// /// Threading: callable by any thread. void fetchAll(bool wait, OpContainer & ops); + + /// Disallow further request queuing + /// + /// Threading: callable by any thread. + void stopQueue(); protected: static HttpRequestQueue * sInstance; @@ -97,6 +103,7 @@ protected: OpContainer mQueue; LLCoreInt::HttpMutex mQueueMutex; LLCoreInt::HttpConditionVariable mQueueCV; + bool mQueueStopped; }; // end class HttpRequestQueue |