From 7f0053c8f0cd76ecff7f8aee060cd4fd5093b1a3 Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期五, 18 八月 2017 11:07:16 +0800
Subject: [PATCH] bug fix for rtsp client

---
 VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/exception.h |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/exception.h b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/exception.h
index f6c0b2d..811638e 100644
--- a/VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/exception.h
+++ b/VisitFace/RtspNativeCodec/app/libs/capnproto/include/kj/exception.h
@@ -33,6 +33,7 @@
 namespace kj {
 
 class ExceptionImpl;
+template <typename T> class Function;
 
 class Exception {
   // Exception thrown in case of fatal errors.
@@ -216,6 +217,11 @@
   virtual StackTraceMode stackTraceMode();
   // Returns the current preferred stack trace mode.
 
+  virtual Function<void(Function<void()>)> getThreadInitializer();
+  // Called just before a new thread is spawned using kj::Thread. Returns a function which should
+  // be invoked inside the new thread to initialize the thread's ExceptionCallback. The initializer
+  // function itself receives, as its parameter, the thread's main function, which it must call.
+
 protected:
   ExceptionCallback& next;
 
@@ -224,6 +230,8 @@
 
   class RootExceptionCallback;
   friend ExceptionCallback& getExceptionCallback();
+
+  friend class Thread;
 };
 
 ExceptionCallback& getExceptionCallback();

--
Gitblit v1.8.0