close async

pull/869/head
jeff 5 years ago
parent 9dd73dad46
commit cdb5610d90

@ -249,7 +249,7 @@ __ ___ ____ _ _ ___ _ _ ____
} }
void void
Context::Close() Context::CloseAsync()
{ {
/// already closing /// already closing
if(closeWaiter) if(closeWaiter)
@ -603,7 +603,7 @@ extern "C"
{ {
if(ptr == nullptr) if(ptr == nullptr)
return; return;
ptr->ctx->Close(); ptr->ctx->CloseAsync();
ptr->ctx->Wait(); ptr->ctx->Wait();
} }

Loading…
Cancel
Save