From 7eb6a3fefc3d23fd0925184e44259eafbea17df2 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 24 May 2019 10:18:48 -0700 Subject: [PATCH] GlShaderSync description fixed PiperOrigin-RevId: 249854045 --- tensorflow/lite/delegates/gpu/gl/gl_sync.h | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tensorflow/lite/delegates/gpu/gl/gl_sync.h b/tensorflow/lite/delegates/gpu/gl/gl_sync.h index 10bab988d5e..4f89e01abed 100644 --- a/tensorflow/lite/delegates/gpu/gl/gl_sync.h +++ b/tensorflow/lite/delegates/gpu/gl/gl_sync.h @@ -82,12 +82,10 @@ Status GlSyncWait(); // (up to tens of ms) but consumes more CPU. Status GlActiveSyncWait(); -// Performs the best available minimum latency finish. A calling thread is not -// going to sleep keeping active busy wait. -// 1) CPU checks the value in the buffer that is going to be written by GPU. The -// persistent buffer is used if the extension is available. -// 2) glSync is checked for the signalling state in a loop. -// 3) glFinish() is performed if all other methods are not available +// CPU checks the value in the buffer that is going to be written by GPU. The +// persistent buffer is used for the simultaneous access to the buffer by GPU +// and CPU. The instance remains invalid if persistent buffer OpenGL extension +// is not supported by the device. class GlShaderSync { public: static Status NewSync(GlShaderSync* gl_sync);