Move helper class ThreadSafeStatus into a separate file with unit test.

PiperOrigin-RevId: 321974213
Change-Id: I78ceb91618c40da799097aa4d2048be0bf182c16
This commit is contained in:
Mingming Liu 2020-07-18 16:29:23 -07:00
parent 0cb65c025f
commit 6ee77b0b8e

View File

@ -64,6 +64,18 @@ cc_library(
],
)
cc_library(
name = "threadsafe_status",
srcs = ["threadsafe_status.cc"],
hdrs = ["threadsafe_status.h"],
deps = [
"//tensorflow/core:lib",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/status",
"@com_google_absl//absl/synchronization",
],
)
tf_cc_test(
name = "batch_scheduler_test",
srcs = ["batch_scheduler_test.cc"],