trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject [trafficserver] 09/33: TS-4425: Add Ptr<ProxyMutex> Continuation constructor.
Date Wed, 11 May 2016 20:31:33 GMT
This is an automated email from the ASF dual-hosted git repository.

jpeach pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git

commit 4e9d4e37bd4ca2d182116826b3809ad8a09160b3
Author: James Peach <jpeach@apache.org>
AuthorDate: Thu May 5 20:05:10 2016 -0700

    TS-4425: Add Ptr<ProxyMutex> Continuation constructor.
---
 iocore/eventsystem/I_Continuation.h | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/iocore/eventsystem/I_Continuation.h b/iocore/eventsystem/I_Continuation.h
index 9ba78b4..9660cab 100644
--- a/iocore/eventsystem/I_Continuation.h
+++ b/iocore/eventsystem/I_Continuation.h
@@ -161,6 +161,7 @@ public:
 
   */
   Continuation(ProxyMutex *amutex = NULL);
+  Continuation(Ptr<ProxyMutex> &amutex);
 };
 
 /**
@@ -191,6 +192,17 @@ public:
 #define SET_CONTINUATION_HANDLER(_c, _h) (_c->handler = ((ContinuationHandler)_h))
 #endif
 
+inline Continuation::Continuation(Ptr<ProxyMutex> &amutex)
+  : handler(NULL),
+#ifdef DEBUG
+    handler_name(NULL),
+#endif
+    mutex(amutex)
+{
+  // Pick up the control flags from the creating thread
+  this->control_flags.set_flags(get_cont_flags().get_flags());
+}
+
 inline Continuation::Continuation(ProxyMutex *amutex)
   : handler(NULL),
 #ifdef DEBUG

-- 
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>.

Mime
View raw message