Trying to improve the efficiency of RequestContext callbacks
authorMirek Klimos <miro@fb.com>
Fri, 4 Nov 2016 18:10:46 +0000 (11:10 -0700)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Fri, 4 Nov 2016 18:23:26 +0000 (11:23 -0700)
commit245489e26719816e7ee9939a60c6d359eb7139be
tree81be26c7d9ac303b3a6e258e3bd825189f2e78f9
parent4b4183cec9704344fa139d8eb3a962b28aad3f87
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