aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/protobuf
diff options
context:
space:
mode:
authorGravatar Eugene Brevdo <ebrevdo@google.com>2018-01-12 22:22:35 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-01-12 22:26:32 -0800
commit505258f652f55e3a03513810d5768faed282e45e (patch)
tree8b39acd88bebfaf079cb25c96b81ef371eed7e24 /tensorflow/core/protobuf
parent7022e6b62908f688cae446f1abbc667c5273db04 (diff)
[TF] Additional CriticalSection python wrappers.
PiperOrigin-RevId: 181827605
Diffstat (limited to 'tensorflow/core/protobuf')
-rw-r--r--tensorflow/core/protobuf/critical_section.proto22
1 files changed, 22 insertions, 0 deletions
diff --git a/tensorflow/core/protobuf/critical_section.proto b/tensorflow/core/protobuf/critical_section.proto
new file mode 100644
index 0000000000..0b3f531e6d
--- /dev/null
+++ b/tensorflow/core/protobuf/critical_section.proto
@@ -0,0 +1,22 @@
+syntax = "proto3";
+
+package tensorflow;
+option cc_enable_arenas = true;
+option java_outer_classname = "CriticalSectionProtos";
+option java_multiple_files = true;
+option java_package = "org.tensorflow.framework";
+
+// Protocol buffer representing a CriticalSection.
+message CriticalSectionDef {
+ // Name of the critical section handle.
+ string critical_section_name = 1;
+}
+
+// Protocol buffer representing a CriticalSection execution.
+message CriticalSectionExecutionDef {
+ // Name of the critical section handle.
+ string execute_in_critical_section_name = 1;
+ // Whether this operation requires exclusive access to its resources,
+ // (i.e., no other CriticalSections may request the same resources).
+ bool exclusive_resource_access = 2;
+}