Factor out ReusablePool

PiperOrigin-RevId: 488783477
This commit is contained in:
Camillo Lugaresi
2022-11-15 16:18:20 -08:00
committed by Copybara-Service
parent ab074a579a
commit 583d27636b
5 changed files with 178 additions and 112 deletions
+11
View File
@@ -607,6 +607,7 @@ cc_library(
":gpu_buffer",
":gpu_shared_data_header",
":multi_pool",
":reusable_pool",
"//mediapipe/framework:calculator_context",
"//mediapipe/framework:calculator_node",
"//mediapipe/framework/port:logging",
@@ -615,6 +616,16 @@ cc_library(
],
)
cc_library(
name = "reusable_pool",
hdrs = ["reusable_pool.h"],
deps = [
":multi_pool",
"@com_google_absl//absl/functional:any_invocable",
"@com_google_absl//absl/synchronization",
],
)
cc_library(
name = "multi_pool",
hdrs = ["multi_pool.h"],