diff options
| author | Nicky <nicky.dasmijn@posteo.nl> | 2024-05-22 11:05:51 +0200 |
|---|---|---|
| committer | Nicky <nicky.dasmijn@posteo.nl> | 2024-05-22 11:05:51 +0200 |
| commit | ad59ffd4bc7bc77b260da6152a188f6b2ab59d05 (patch) | |
| tree | 169edbab006d8bbd86b2980ab98fb62e097067ff /indra/llcorehttp/_httpreplyqueue.h | |
| parent | 3dc5fa00753bb889280771a2cd17029aa1e42f24 (diff) | |
| parent | ec23d45e2e9a87147641fed6f8c3ef6083c2f878 (diff) | |
Merge remote-tracking branch 'mkd/pipewire-linux-volume-catcher' into pipewire-linux-volume-catcher
Diffstat (limited to 'indra/llcorehttp/_httpreplyqueue.h')
| -rw-r--r-- | indra/llcorehttp/_httpreplyqueue.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/indra/llcorehttp/_httpreplyqueue.h b/indra/llcorehttp/_httpreplyqueue.h index 33e205c1c9..d8847fafb5 100644 --- a/indra/llcorehttp/_httpreplyqueue.h +++ b/indra/llcorehttp/_httpreplyqueue.h @@ -24,8 +24,8 @@ * $/LicenseInfo$ */ -#ifndef _LLCORE_HTTP_REPLY_QUEUE_H_ -#define _LLCORE_HTTP_REPLY_QUEUE_H_ +#ifndef _LLCORE_HTTP_REPLY_QUEUE_H_ +#define _LLCORE_HTTP_REPLY_QUEUE_H_ #include "_refcounted.h" @@ -63,45 +63,45 @@ class HttpReplyQueue : private boost::noncopyable { public: - typedef boost::shared_ptr<HttpOperation> opPtr_t; - typedef boost::shared_ptr<HttpReplyQueue> ptr_t; + typedef std::shared_ptr<HttpOperation> opPtr_t; + typedef std::shared_ptr<HttpReplyQueue> ptr_t; - HttpReplyQueue(); - virtual ~HttpReplyQueue(); + HttpReplyQueue(); + virtual ~HttpReplyQueue(); public: typedef std::vector< opPtr_t > OpContainer; - /// Insert an object at the back of the reply queue. - /// - /// Library also takes possession of one reference count to pass - /// through the queue. - /// - /// Threading: callable by any thread. + /// Insert an object at the back of the reply queue. + /// + /// Library also takes possession of one reference count to pass + /// through the queue. + /// + /// Threading: callable by any thread. void addOp(const opPtr_t &op); - /// Fetch an operation from the head of the queue. Returns - /// NULL if none exists. - /// - /// Caller acquires reference count on returned operation. - /// - /// Threading: callable by any thread. + /// Fetch an operation from the head of the queue. Returns + /// NULL if none exists. + /// + /// Caller acquires reference count on returned operation. + /// + /// Threading: callable by any thread. opPtr_t fetchOp(); - /// Caller acquires reference count on each returned operation - /// - /// Threading: callable by any thread. - void fetchAll(OpContainer & ops); - + /// Caller acquires reference count on each returned operation + /// + /// Threading: callable by any thread. + void fetchAll(OpContainer & ops); + protected: - OpContainer mQueue; - LLCoreInt::HttpMutex mQueueMutex; - + OpContainer mQueue; + LLCoreInt::HttpMutex mQueueMutex; + }; // end class HttpReplyQueue } // end namespace LLCore -#endif // _LLCORE_HTTP_REPLY_QUEUE_H_ +#endif // _LLCORE_HTTP_REPLY_QUEUE_H_ |
