We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 81248fd + d8f4326 commit f62bea3Copy full SHA for f62bea3
stan/math/rev/core/init_chainablestack.hpp
@@ -33,6 +33,8 @@ class ad_tape_observer : public tbb::task_scheduler_observer {
33
observe(true); // activates the observer
34
}
35
36
+ ~ad_tape_observer() { observe(false); }
37
+
38
void on_scheduler_entry(bool worker) {
39
std::lock_guard<std::mutex> thread_tape_map_lock(thread_tape_map_mutex_);
40
const std::thread::id thread_id = std::this_thread::get_id();
0 commit comments