@Override
  protected void afterExecute(Runnable r, Throwable t) {
    if (stats != null) {
      stats.endJob();
    }
    if (threadMonitoring != null) {
      threadMonitoring.endMonitor();
    }
  }
Is the current thread used for executing Functions?
geode-core/src/main/java/org/apache/geode/distributed/internal/FunctionExecutionPooledExecutor.java