Home
last modified time | relevance | path

Searched refs:CancellationToken (Results 1 – 25 of 59) sorted by relevance

123

/external/tensorflow/tensorflow/core/framework/
Dcancellation.h37 typedef int64 CancellationToken; typedef
51 static const CancellationToken kInvalidToken;
71 CancellationToken get_cancellation_token() { in get_cancellation_token()
124 bool RegisterCallback(CancellationToken token, CancelCallback callback);
135 bool DeregisterCallback(CancellationToken token);
144 bool TryDeregisterCallback(CancellationToken token);
152 gtl::FlatMap<CancellationToken, CancelCallback> callbacks;
164 std::atomic<CancellationToken> next_cancellation_token_;
Dcancellation.cc26 const CancellationToken CancellationManager::kInvalidToken = -1;
39 gtl::FlatMap<CancellationToken, CancelCallback> callbacks_to_run; in StartCancel()
84 bool CancellationManager::RegisterCallback(CancellationToken token, in RegisterCallback()
98 bool CancellationManager::DeregisterCallback(CancellationToken token) { in DeregisterCallback()
183 bool CancellationManager::TryDeregisterCallback(CancellationToken token) { in TryDeregisterCallback()
213 CancellationToken token = cancellation_manager->get_cancellation_token(); in RegisterCancellationCallback()
/external/grpc-grpc/src/csharp/Grpc.IntegrationTesting/
DTestGrpc.cs244 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in EmptyCall()
266 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in EmptyCallAsync()
288 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in UnaryCall()
310 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in UnaryCallAsync()
334 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in CacheableUnaryCall()
360 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in CacheableUnaryCallAsync()
385 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in StreamingOutputCall()
408 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in StreamingInputCall()
431 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in FullDuplexCall()
456 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in HalfDuplexCall()
[all …]
DBenchmarkServiceGrpc.cs177 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in UnaryCall()
201 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in UnaryCallAsync()
225 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in StreamingCall()
248 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in StreamingFromClient()
271 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in StreamingFromServer()
294 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in StreamingBothWays()
DWorkerServiceGrpc.cs170 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in RunServer()
200 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in RunClient()
226 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in CoreCount()
248 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in CoreCountAsync()
270 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in QuitWorker()
292 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in QuitWorkerAsync()
DMetricsGrpc.cs121 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in GetAllGauges()
144 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in GetGauge()
166 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in GetGaugeAsync()
DReportQpsScenarioServiceGrpc.cs95 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in ReportScenario()
117 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in ReportScenarioAsync()
/external/grpc-grpc/src/csharp/Grpc.Core/
DCallOptions.cs34 CancellationToken cancellationToken;
49 …a headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(Cancell… in CallOptions()
86 public CancellationToken CancellationToken property
162 public CallOptions WithCancellationToken(CancellationToken cancellationToken) in WithCancellationToken()
DServerCallContext.cs37 private readonly CancellationToken cancellationToken;
48 …ng method, string host, DateTime deadline, Metadata requestHeaders, CancellationToken cancellation… in ServerCallContext()
55 …ng method, string host, DateTime deadline, Metadata requestHeaders, CancellationToken cancellation… in ServerCallContext()
150 public CancellationToken CancellationToken property in Grpc.Core.ServerCallContext
DContextPropagationToken.cs51 readonly CancellationToken cancellationToken;
54 …ntextPropagationToken(CallSafeHandle parentCall, DateTime deadline, CancellationToken cancellation… in ContextPropagationToken()
87 internal CancellationToken ParentCancellationToken
/external/grpc-grpc/src/csharp/Grpc.Examples/
DMathGrpc.cs159 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in Div()
183 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in DivAsync()
208 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in DivMany()
234 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in Fib()
258 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in Sum()
/external/grpc-grpc/examples/csharp/RouteGuide/RouteGuide/
DRouteGuideGrpc.cs176 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in GetFeature()
208 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in GetFeatureAsync()
240 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in ListFeatures()
269 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in RecordRoute()
295 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in RouteChat()
/external/grpc-grpc/src/csharp/Grpc.Core.Tests/
DCallOptionsTest.cs43 …rt.AreEqual(cancellationToken, options.WithCancellationToken(cancellationToken).CancellationToken); in WithMethods()
49 CancellationToken.None, ContextPropagationOptions.Default); in WithMethods()
61 Assert.AreEqual(CancellationToken.None, options.CancellationToken); in WithMethods()
75 …Token1 = new ContextPropagationToken(CallSafeHandle.NullInstance, deadline, CancellationToken.None, in Normalize()
83 …reEqual(token, new CallOptions(propagationToken: propagationToken2).Normalize().CancellationToken); in Normalize()
/external/tensorflow/tensorflow/core/kernels/
Dconditional_accumulator_base.h97 CancellationToken cancellation_token;
103 CancellationToken cancellation_token, RunCallback run_callback) in Attempt()
116 CleanUp(DoneCallback&& f, CancellationToken ct, CancellationManager* cm) in CleanUp()
119 CancellationToken to_deregister;
139 CancellationToken token);
Dqueue_base.h98 CleanUp(DoneCallback&& f, CancellationToken ct, CancellationManager* cm) in CleanUp()
101 CancellationToken to_deregister;
122 CancellationToken token);
159 CancellationToken cancellation_token;
168 CancellationToken cancellation_token, RunCallback run_callback) in Attempt()
Dfifo_queue.cc53 CancellationToken token = cm->get_cancellation_token(); in TryEnqueue()
111 CancellationToken token = cm->get_cancellation_token(); in TryEnqueueMany()
157 CancellationToken token = cm->get_cancellation_token(); in TryDequeue()
248 CancellationToken token = cm->get_cancellation_token(); in TryDequeueMany()
/external/grpc-grpc/src/csharp/Grpc.Examples.Tests/
DMathClientMockableTest.cs39 …mockClient.Setup(m => m.Div(Moq.It.IsAny<DivArgs>(), null, null, CancellationToken.None)).Returns(… in ClientBaseBlockingUnaryCallCanBeMocked()
60 …mockClient.Setup(m => m.DivAsync(Moq.It.IsAny<DivArgs>(), null, null, CancellationToken.None)).Ret… in ClientBaseAsyncUnaryCallCanBeMocked()
72 mockClient.Setup(m => m.Sum(null, null, CancellationToken.None)).Returns(fakeCall); in ClientBaseClientStreamingCallCanBeMocked()
84 …mockClient.Setup(m => m.Fib(Moq.It.IsAny<FibArgs>(), null, null, CancellationToken.None)).Returns(… in ClientBaseServerStreamingCallCanBeMocked()
97 mockClient.Setup(m => m.DivMany(null, null, CancellationToken.None)).Returns(fakeCall); in ClientBaseDuplexStreamingCallCanBeMocked()
/external/grpc-grpc/examples/csharp/HelloworldLegacyCsproj/Greeter/
DHelloworldGrpc.cs96 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in SayHello()
118 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in SayHelloAsync()
/external/grpc-grpc/examples/csharp/HelloworldXamarin/HelloworldXamarin/
DHelloworldGrpc.cs97 …a headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(Cancell… in SayHello()
119 …a headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default(Cancell… in SayHelloAsync()
/external/grpc-grpc/examples/csharp/Helloworld/Greeter/
DHelloworldGrpc.cs96 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in SayHello()
118 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in SayHelloAsync()
/external/grpc-grpc/src/csharp/Grpc.HealthCheck/
DHealthGrpc.cs82 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in Check()
90 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in CheckAsync()
/external/tensorflow/tensorflow/core/common_runtime/
Dbuf_rendezvous.h71 CancellationToken cancellation_token;
73 CancellationToken cancellation_token) in Hook()
/external/grpc-grpc/src/csharp/Grpc.Core/Internal/
DServerCallHandler.cs66 … var context = HandlerUtils.NewContext(newRpc, responseStream, asyncCall.CancellationToken); in HandleCall()
129 … var context = HandlerUtils.NewContext(newRpc, responseStream, asyncCall.CancellationToken); in HandleCall()
193 … var context = HandlerUtils.NewContext(newRpc, responseStream, asyncCall.CancellationToken); in HandleCall()
255 … var context = HandlerUtils.NewContext(newRpc, responseStream, asyncCall.CancellationToken); in HandleCall()
348 …pc, ServerResponseStream<TRequest, TResponse> serverResponseStream, CancellationToken cancellation…
/external/tensorflow/tensorflow/core/tpu/
Dtpu_execute.cc320 std::pair<CancellationToken, bool> RegisterCancellation( in RegisterCancellation()
349 CancellationToken token = cancellation_manager->get_cancellation_token(); in RegisterCancellation()
355 return std::pair<CancellationToken, bool>(token, already_cancelled); in RegisterCancellation()
360 se::Stream* stream, int device_ordinal, CancellationToken token, in UnregisterCancellation()
485 CancellationToken token; in TPUExecute()
/external/grpc-grpc/src/csharp/Grpc.Reflection/
DReflectionGrpc.cs97 … null, global::System.Threading.CancellationToken cancellationToken = default(global::System.Threa… in ServerReflectionInfo()

123