Skip to content

Commit

Permalink
Add defines
Browse files Browse the repository at this point in the history
Signed-off-by: p-wysocki <[email protected]>
  • Loading branch information
p-wysocki committed Dec 29, 2024
1 parent 82d553e commit 8670e27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/inference/src/dev/core_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
//

// https://developercommunity.visualstudio.com/t/Crash-SEGV-in-mutex-lock/10679088#T-N10680013
#if defined(_WIN32) || defined(_WIN64)
#define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
#endif

#include "core_impl.hpp"

#include <memory>
Expand Down
5 changes: 5 additions & 0 deletions src/inference/src/dev/threading/executor_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
// SPDX-License-Identifier: Apache-2.0
//

// https://developercommunity.visualstudio.com/t/Crash-SEGV-in-mutex-lock/10679088#T-N10680013
#if defined(_WIN32) || defined(_WIN64)
#define _DISABLE_CONSTEXPR_MUTEX_CONSTRUCTOR
#endif

#include "openvino/runtime/threading/executor_manager.hpp"

#include "openvino/core/parallel.hpp"
Expand Down

0 comments on commit 8670e27

Please sign in to comment.