Skip to content

Commit

Permalink
Remove unused template class tls (#536)
Browse files Browse the repository at this point in the history
Signed-off-by: Serov, Vladimir <[email protected]>
  • Loading branch information
vlserov authored Aug 18, 2021
1 parent de0109b commit d2405e3
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/tbb/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,18 +74,6 @@ class basic_tls {
tls_key_t my_key;
};

//! More advanced TLS support template class.
/** It supports RAII and to some extent mimic __declspec(thread) variables. */
template <typename T>
class tls : public basic_tls<T> {
typedef basic_tls<T> base;
public:
tls() { base::create(); }
~tls() { base::destroy(); }
T operator=(T value) { base::set(value); return value; }
operator T() { return base::get(); }
};

} // namespace r1
} // namespace detail
} // namespace tbb
Expand Down

0 comments on commit d2405e3

Please sign in to comment.