Home
last modified time | relevance | path

Searched refs:rnd (Results 1 – 8 of 8) sorted by relevance

/oneTBB/test/tbb/
H A Dtest_scheduler_mix.cpp407 void create(Random& rnd) { in create() argument
411 unsigned int num_reserved = rnd.get() % num_threads; in create()
413 tbb::task_arena::priority priority = priorities[rnd.get() % 3]; in create()
431 void destroy(Random& rnd) { in destroy() argument
476 a = find_arena(rnd.get() % maxArenas, in acquire()
592 static void do_it(Random& rnd) { in do_it()
600 int sz = rnd.get() % 10000; in do_it()
601 auto doGlbAction = rnd.get() % 1000 == 42; in do_it()
608 switch (rnd.get() % num_parts) { in do_it()
628 auto& rnd = threadRandom; in global_actor() local
[all …]
H A Dtest_global_control.cpp69 utils::FastRandom<> rnd( ++gSeed ); in operator ()() local
74 switch ( rnd.get() % numCases ) { in operator ()()
95 utils::NativeParallelFor( rnd.get() % 5 + 1, TestMultpleWaitBody( true ) ); in operator ()()
H A Dtest_concurrent_priority_queue.cpp30 utils::FastRandom<> rnd(1234); in test_cpq_with_smart_pointers() local
34 const int rnd_get = rnd.get(); in test_cpq_with_smart_pointers()
45 arrInt.emplace_back(rnd.get()); in test_cpq_with_smart_pointers()
H A Dtest_environment_whitebox.cpp59 utils::FastRandom<> rnd(12345); variable
63 return rnd.get() % 128; // 127 - the last ASCII symbol in operator ()()
118 cases.push_back(create_random_case<T>((rnd.get() % length) + 1)); in prepare_random_cases()
H A Dtest_task_arena.cpp776 if ( rnd.get() % 2 ) { in RunTwoBodies()
802 void RunNextLevel( utils::FastRandom<>& rnd, int &isolated_level ) const { in RunNextLevel() argument
804 switch ( rnd.get() % 2 ) { in RunNextLevel()
808 … RunTwoBodies( rnd, HeavyMixTestBody(myRandom, myIsolatedLevel, myNestedLevel + 1), p, &ctx ); in RunNextLevel()
831 utils::FastRandom<>& rnd = myRandom.local(); in operator ()() local
832 if ( rnd.get() % 2 == 1 ) { in operator ()()
833 RunNextLevel<tbb::auto_partitioner>( rnd, isolated_level ); in operator ()()
835 RunNextLevel<tbb::affinity_partitioner>( rnd, isolated_level ); in operator ()()
1153 utils::FastRandom<> rnd(1234); in TestMultipleWaits() local
1156 const int num_bunches = 3 + rnd.get()%3; in TestMultipleWaits()
[all …]
H A Dtest_concurrent_queue.cpp135 utils::FastRandom<> rnd(42); in CopyWithThrowElement() local
146 rnd_elem = rnd.get() % queue_size; in CopyWithThrowElement()
/oneTBB/test/common/
H A Dfp_control.h121 inline void SetRoundingMode ( int rnd ) { fesetround(rnd); } in SetRoundingMode() argument
/oneTBB/test/conformance/
H A Dconformance_concurrent_priority_queue.cpp46 utils::FastRandom<> rnd(1234); in test_basic() local
50 arrInt.emplace_back(rnd.get()); in test_basic()