Use size_t for ThreadPoolExecutor::getPendingTaskCountImpl
Summary: [Folly] Use `size_t` for `ThreadPoolExecutor::getPendingTaskCountImpl`, as it is the canonical size type for counting the number of entries in in-memory data structures. Prevents confusion when using values returned from this function with other sizes, especially in contexts where the two types are required to match as might occur in calls to `std::min` without explicitly specifying the type. Fixes #843. Reviewed By: djwatson Differential Revision: D7898443 fbshipit-source-id: eec789f661351d09545bc7118f2e4b3587fd7302
Showing
Please register or sign in to comment