MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / test_parallel

Function test_parallel

tests/basic/test-assert.cpp:83–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void test_parallel()
84{
85 try
86 {
87 async::parallel_invoke(
88 [] {
89 throw std::runtime_error( "Some // error 0" );
90 },
91 [] {
92 throw std::runtime_error( "Some // error 1" );
93 },
94 [] {
95 throw std::runtime_error( "Some // error 2" );
96 },
97 [] {
98 throw std::runtime_error( "Some // error 3" );
99 } );
100 exit( 1 );
101 }
102 catch( ... )
103 {
104 geode::geode_lippincott();
105 }
106
107 try
108 {
109 async::parallel_for( async::irange( 0, 10 ), []( int i ) {
110 geode_unused( i );
111 throw std::runtime_error( "Some for error" );
112 } );
113 exit( 1 );
114 }
115 catch( ... )
116 {
117 geode::geode_lippincott();
118 }
119}
120
121void test_async()
122{

Callers 1

testFunction · 0.85

Calls 2

geode_lippincottFunction · 0.85
geode_unusedFunction · 0.85

Tested by

no test coverage detected