From 0c3bba1a4d7b652807dfb74e1a31012802bd2987 Mon Sep 17 00:00:00 2001
From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 17 八月 2017 12:26:55 +0800
Subject: [PATCH] aaaaa
---
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