Skip to content

Commit

Permalink
Workaround for tbb::detail::r1::unsafe_wait broken ABI on macOS
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
  • Loading branch information
phprus committed Aug 22, 2024
1 parent 06cab5d commit 2887a2f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion include/oneapi/tbb/detail/_exception.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2005-2021 Intel Corporation
Copyright (c) 2005-2023 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -66,10 +66,16 @@ class TBB_EXPORT missing_wait : public std::exception {
};

//! Exception for impossible finalization of task_sheduler_handle
#if __APPLE__
#pragma GCC visibility push(default)
#endif
class TBB_EXPORT unsafe_wait : public std::runtime_error {
public:
unsafe_wait(const char* msg) : std::runtime_error(msg) {}
};
#if __APPLE__
#pragma GCC visibility pop
#endif

//! Gathers all throw operators in one place.
/** Its purpose is to minimize code bloat that can be caused by throw operators
Expand Down

0 comments on commit 2887a2f

Please sign in to comment.