From 245489e26719816e7ee9939a60c6d359eb7139be Mon Sep 17 00:00:00 2001 From: Mirek Klimos Date: Fri, 4 Nov 2016 11:10:46 -0700 Subject: [PATCH] Trying to improve the efficiency of RequestContext callbacks Summary: Changed RWSpinLock to a SharedMutex in the RequestContext to see if this would lower the overhead of the onSet/onUnset callbacks. Reviewed By: djwatson Differential Revision: D3780396 fbshipit-source-id: 3d91f8194357533072fe053d23e0454a36faecff --- folly/io/async/Request.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folly/io/async/Request.h b/folly/io/async/Request.h index 59d66f94..67f220d4 100644 --- a/folly/io/async/Request.h +++ b/folly/io/async/Request.h @@ -23,7 +23,7 @@ #include #include -#include +#include #include namespace folly { @@ -99,7 +99,7 @@ class RequestContext { static std::shared_ptr& getStaticContext(); using Data = std::map>; - folly::Synchronized data_; + folly::Synchronized data_; }; class RequestContextScopeGuard { -- 2.34.1