[Parallel_libs-commits] [PATCH] D24063: [StreamExecutor] Add	Stream::blockHostUntilDone
    Justin Lebar via Parallel_libs-commits 
    parallel_libs-commits at lists.llvm.org
       
    Tue Aug 30 17:04:33 PDT 2016
    
    
  
jlebar accepted this revision.
jlebar added a comment.
This revision is now accepted and ready to land.
I initially thought this should be "thenable", but there's no reason for that.  This is good.
================
Comment at: streamexecutor/include/streamexecutor/Stream.h:87
@@ +86,3 @@
+  // Returns the result of getStatus() after the Stream work completes.
+  Error blockHostUntilDone() {
+    setError(PDevice->blockHostUntilDone(ThePlatformStream.get()));
----------------
Would "thenBlockHostUntilDone" be more consistent with the other names?  Or are you intentionally being inconsistent to signal that this is a different sort of thing (e.g. it doesn't return a Stream&)?
https://reviews.llvm.org/D24063
    
    
More information about the Parallel_libs-commits
mailing list