Add logging for blocking using baton while on an executor
Summary: Add sampled logging of blocking operations made on folly::Baton from within an executor task. Relies on thread_local state recording whether we are in a context where blocking is disallowed, which means within a task running on an executor with support for the functionality. Functionality is currently limited to certain executors, and to blocking operations on Baton, but this covers common user-facing APIs like Future. Reviewed By: andriigrynenko Differential Revision: D20010963 fbshipit-source-id: c0598e1a3a9c4e3641581e561b678a2b241998ff
Showing
Please register or sign in to comment