Skip to content

Commit 8678a73

Browse files
authored
[UR][OpenCL] Remove mutex for OpenCL urContextRelease (#19090)
1 parent 3de0989 commit 8678a73

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

unified-runtime/source/adapters/opencl/context.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,6 @@ urContextGetInfo(ur_context_handle_t hContext, ur_context_info_t propName,
117117

118118
UR_APIEXPORT ur_result_t UR_APICALL
119119
urContextRelease(ur_context_handle_t hContext) {
120-
static std::mutex contextReleaseMutex;
121-
122-
std::lock_guard<std::mutex> lock(contextReleaseMutex);
123120
if (hContext->decrementReferenceCount() == 0) {
124121
delete hContext;
125122
}

0 commit comments

Comments
 (0)