Home
last modified time | relevance | path

Searched refs:is_active (Results 1 – 12 of 12) sorted by relevance

/oneTBB/python/tbb/
H A D__init__.py48 is_active = False variable
196 global is_active
197 assert is_active == False, "tbb.Monkey does not support nesting yet"
198 is_active = True
213 global is_active
214 assert is_active == True, "modified?"
215 is_active = False
H A Dapi.i123 bool is_active();
/oneTBB/test/common/
H A Dcontainers_common.h135 static bool is_active;
138 if (is_active) {
142 static void activate() { is_active = true; }
143 static void deactivate() { is_active = false; }
149 bool ThrowOnCopy::is_active = false;
/oneTBB/test/conformance/
H A Dconformance_task_arena.cpp52 CHECK(attached_arena.is_active()); in __anon3e0b77410202()
54 CHECK(attached_arena2.is_active()); in __anon3e0b77410202()
125 REQUIRE(arena.is_active() == copy.is_active());
/oneTBB/include/oneapi/tbb/detail/
H A D_template_helpers.h191 raii_guard( Func f ) noexcept : my_func(f), is_active(true) {}
193 raii_guard( raii_guard&& g ) noexcept : my_func(std::move(g.my_func)), is_active(g.is_active) {
194 g.is_active = false;
198 if (is_active) {
204 is_active = false;
208 bool is_active;
H A D_flow_graph_impl.h250 if (!my_task_arena->is_active()) // failed to attach
252 __TBB_ASSERT(my_task_arena->is_active(), "task arena is not active");
450 __TBB_ASSERT(g.my_task_arena && g.my_task_arena->is_active(), nullptr); in spawn_in_graph_arena()
464 …__TBB_ASSERT( g.my_task_arena && g.my_task_arena->is_active(), "Is graph's arena initialized and a… in enqueue_in_graph_arena()
/oneTBB/include/oneapi/tbb/
H A Dtask_arena.h317 if( !is_active() ) {
331 if( !is_active() ) {
348 if( !is_active() ) { in initialize()
364 if( is_active() ) { in terminate()
378 bool is_active() const { in is_active() function
436 __TBB_ASSERT(ta.is_active(), nullptr); in submit()
/oneTBB/test/tbb/
H A Dtest_task_arena.cpp62 CHECK_MESSAGE(!arena.is_active(), "arena should not be active until initialized"); in InitializeAndTerminate()
64 CHECK(arena.is_active()); in InitializeAndTerminate()
66 CHECK_MESSAGE(!arena.is_active(), "arena should not be active; it was terminated"); in InitializeAndTerminate()
71 CHECK_MESSAGE(!arena.is_active(), "arena should not be active until initialized"); in InitializeAndTerminate()
73 CHECK(arena.is_active()); in InitializeAndTerminate()
78 CHECK(!arena.is_active()); in InitializeAndTerminate()
80 CHECK(arena.is_active()); in InitializeAndTerminate()
85 CHECK_MESSAGE(!arena.is_active(), "arena should not be active until initialized"); in InitializeAndTerminate()
87 CHECK(arena.is_active()); in InitializeAndTerminate()
595 CHECK_MESSAGE( arena.is_active()==expect_activated, "Unexpected activation state" ); in ValidateAttachedArena()
[all …]
H A Dtest_async_node.cpp335 is_active = !deferred; in async_activity()
345 is_active = true; in async_activity()
362 if( is_active && my_work_queue.try_pop( work ) ) { in process()
382 is_active = true; in activate()
396 std::atomic< bool > is_active; member in async_activity
/oneTBB/examples/task_arena/fractal/
H A Dfractal.cpp85 void fractal::draw_border(bool is_active) { in draw_border() argument
86 color_t color = is_active ? v->get_color(0, 255, 0) // green color in draw_border()
H A Dfractal.hpp49 void draw_border(bool is_active);
/oneTBB/doc/main/tbb_userguide/
H A Duse_input_node.rst13 template< typename Body > input_node( graph &g, Body body, bool is_active=true )