Yunjia Wang преди 6 години
родител
ревизия
a63cbfb61e
променени са 2 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 2 1
      src/core/lib/iomgr/executor/threadpool.h
  2. 2 1
      test/cpp/microbenchmarks/bm_threadpool.cc

+ 2 - 1
src/core/lib/iomgr/executor/threadpool.h

@@ -19,9 +19,10 @@
 #ifndef GRPC_CORE_LIB_IOMGR_EXECUTOR_THREADPOOL_H
 #ifndef GRPC_CORE_LIB_IOMGR_EXECUTOR_THREADPOOL_H
 #define GRPC_CORE_LIB_IOMGR_EXECUTOR_THREADPOOL_H
 #define GRPC_CORE_LIB_IOMGR_EXECUTOR_THREADPOOL_H
 
 
-#include <grpc/grpc.h>
 #include <grpc/support/port_platform.h>
 #include <grpc/support/port_platform.h>
 
 
+#include <grpc/grpc.h>
+
 #include "src/core/lib/gprpp/thd.h"
 #include "src/core/lib/gprpp/thd.h"
 #include "src/core/lib/iomgr/executor/mpmcqueue.h"
 #include "src/core/lib/iomgr/executor/mpmcqueue.h"
 
 

+ 2 - 1
test/cpp/microbenchmarks/bm_threadpool.cc

@@ -16,11 +16,12 @@
  *
  *
  */
  */
 
 
+#include "src/core/lib/iomgr/executor/threadpool.h"
+
 #include <benchmark/benchmark.h>
 #include <benchmark/benchmark.h>
 
 
 #include <condition_variable>
 #include <condition_variable>
 
 
-#include "src/core/lib/iomgr/executor/threadpool.h"
 #include "test/cpp/microbenchmarks/helpers.h"
 #include "test/cpp/microbenchmarks/helpers.h"
 #include "test/cpp/util/test_config.h"
 #include "test/cpp/util/test_config.h"