16 #ifndef TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_THREADSAFE_STATUS_H_
17 #define TENSORFLOW_CORE_KERNELS_BATCHING_UTIL_THREADSAFE_STATUS_H_
19 #include "tensorflow/core/platform/mutex.h"
20 #include "tensorflow/core/platform/status.h"
21 #include "tensorflow/core/platform/thread_annotations.h"
23 namespace tensorflow {
47 const Status& status()
const& TF_LOCKS_EXCLUDED(mutex_);
48 Status status() && TF_LOCKS_EXCLUDED(mutex_);
52 void Update(
const Status& new_status) TF_LOCKS_EXCLUDED(mutex_);
53 void Update(Status&& new_status) TF_LOCKS_EXCLUDED(mutex_);
57 Status status_ TF_GUARDED_BY(mutex_);