Skip to content

Commit a8b0ae3

Browse files
committed
[mlir] Do not start threads in AsyncRuntime
pthreads is not enabled for all builds by default Reviewed By: jpienaar Differential Revision: https://reviews.llvm.org/D89967
1 parent 5c20d7d commit a8b0ae3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/ExecutionEngine/AsyncRuntime.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ mlirAsyncRuntimeAwaitToken(AsyncToken *token) {
5959

6060
extern "C" MLIR_ASYNCRUNTIME_EXPORT void
6161
mlirAsyncRuntimeExecute(CoroHandle handle, CoroResume resume) {
62-
std::thread thread([handle, resume]() { (*resume)(handle); });
63-
thread.detach();
62+
(*resume)(handle);
6463
}
6564

6665
extern "C" MLIR_ASYNCRUNTIME_EXPORT void

0 commit comments

Comments
 (0)