[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
This commit is contained in:
parent
5c20d7db9f
commit
a8b0ae3bdd
|
@ -59,8 +59,7 @@ mlirAsyncRuntimeAwaitToken(AsyncToken *token) {
|
|||
|
||||
extern "C" MLIR_ASYNCRUNTIME_EXPORT void
|
||||
mlirAsyncRuntimeExecute(CoroHandle handle, CoroResume resume) {
|
||||
std::thread thread([handle, resume]() { (*resume)(handle); });
|
||||
thread.detach();
|
||||
(*resume)(handle);
|
||||
}
|
||||
|
||||
extern "C" MLIR_ASYNCRUNTIME_EXPORT void
|
||||
|
|
Loading…
Reference in a new issue