/third_party/skia/third_party/externals/swiftshader/src/Pipeline/ |
H A D | ComputeProgram.cpp | 278 auto coroutine = (*this)(device, &data, groupX, groupY, groupZ, workgroupMemory.data(), subgroupIndex, 1); in run() 279 coroutines.push(std::move(coroutine)); in run() 284 auto coroutine = (*this)(device, &data, groupX, groupY, groupZ, workgroupMemory.data(), 0, subgroupsPerWorkgroup); in run() 285 coroutines.push(std::move(coroutine)); in run() 290 auto coroutine = std::move(coroutines.front()); in run() 294 if(coroutine->await(result)) in run() 297 coroutines.push(std::move(coroutine)); in run()
|
/third_party/skia/third_party/externals/swiftshader/tests/ReactorBenchmarks/ |
H A D | ReactorBenchmarks.cpp | 56 auto coroutine = function(); in BENCHMARK_DEFINE_F() local 65 coroutine->await(out); in BENCHMARK_DEFINE_F()
|
/third_party/python/Lib/test/ |
H A D | test_coroutines.py | 550 RuntimeError, "coroutine raised StopIteration"): 559 self.assertRegex(repr(coro), '^<coroutine object.* at 0x.*>$') 568 TypeError, "'coroutine' object is not iterable") 592 @types.coroutine 600 TypeError, "'coroutine' object is not iterable") 616 @types.coroutine 640 "cannot 'yield from' a coroutine object in " 641 "a non-coroutine generator"): 647 @types.coroutine 664 r"coroutine ' 812 async def coroutine(): global() function 835 async def coroutine(): global() function 884 async def coroutine(): global() function 1154 async def coroutine(): global() function [all...] |
H A D | test_types.py | 1839 'types.coroutine.*expects a callable'): 1840 types.coroutine(sample) 1843 @types.coroutine 1852 @types.coroutine 1858 foo = types.coroutine(foo) 1862 # Test that types.coroutine passes 'async def' coroutines 1868 decorated_foo = types.coroutine(foo) 1876 bar = types.coroutine(bar) 1890 @types.coroutine 1906 @types.coroutine [all...] |
H A D | test_asyncgen.py | 20 @types.coroutine 75 # we're relying on higher-level coroutine concepts, but that's 499 @types.coroutine 502 yield "this is a generator-based coroutine" 634 @types.coroutine 679 @types.coroutine 700 @types.coroutine 719 @types.coroutine
|
H A D | test_inspect.py | 127 @types.coroutine 2243 @types.coroutine 2247 async def coroutine(): function 2249 self.coroutine = coroutine() 2252 self.coroutine.close() 2255 return inspect.getcoroutinestate(self.coroutine) 2261 self.coroutine.send(None) 2267 self.coroutine.send(None) 2275 self.coroutine [all...] |
H A D | test_collections.py | 786 @types.coroutine 838 @types.coroutine
|
/third_party/skia/third_party/externals/swiftshader/src/Reactor/ |
H A D | LLVMReactor.cpp | 4142 ASSERT(jit->coroutine.id == nullptr); in promoteFunctionToCoroutine() 4150 auto promiseTy = jit->coroutine.yieldType; in promoteFunctionToCoroutine() 4189 auto args = jit->coroutine.await->arg_begin(); in promoteFunctionToCoroutine() 4192 jit->builder->SetInsertPoint(llvm::BasicBlock::Create(*jit->context, "co_await", jit->coroutine.await)); in promoteFunctionToCoroutine() 4193 auto doneBlock = llvm::BasicBlock::Create(*jit->context, "done", jit->coroutine.await); in promoteFunctionToCoroutine() 4194 auto resumeBlock = llvm::BasicBlock::Create(*jit->context, "resume", jit->coroutine.await); in promoteFunctionToCoroutine() 4219 auto handle = jit->coroutine.destroy->arg_begin(); in promoteFunctionToCoroutine() 4220 jit->builder->SetInsertPoint(llvm::BasicBlock::Create(*jit->context, "", jit->coroutine.destroy)); in promoteFunctionToCoroutine() 4262 jit->coroutine.suspendBlock = llvm::BasicBlock::Create(*jit->context, "suspend", jit->function); in promoteFunctionToCoroutine() 4263 jit->coroutine in promoteFunctionToCoroutine() [all...] |
H A D | LLVMReactor.hpp | 116 CoroutineState coroutine; member in rr::JITBuilder
|
/third_party/python/Lib/unittest/test/testmock/ |
H A D | testasync.py | 575 # AsyncMocks are also coroutine functions 769 async def _await_coroutine(self, coroutine): 770 return await coroutine 814 coroutine = mock.async_method() 822 run(self._await_coroutine(coroutine)) 828 coroutine = mock.async_method() 830 run(self._await_coroutine(coroutine)) 832 # Cannot reuse already awaited coroutine 833 run(self._await_coroutine(coroutine)) 842 # You cannot await an AsyncMock, it must be a coroutine [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/ReactorUnitTests/ |
H A D | ReactorUnitTests.cpp | 2515 auto coroutine = function(); 2520 EXPECT_EQ(coroutine->await(out), true); 2546 auto coroutine = function(&data[0], 3); 2549 EXPECT_EQ(coroutine->await(out), true); 2552 EXPECT_EQ(coroutine->await(out), true); 2555 EXPECT_EQ(coroutine->await(out), true); 2558 EXPECT_EQ(coroutine->await(out), false); 2560 EXPECT_EQ(coroutine->await(out), false); 2586 auto coroutine = function(); 2589 coroutine [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | test_pep492.py | 155 @types.coroutine 200 msg='coroutine is being awaited already'):
|
H A D | test_events.py | 287 r"coroutine \S+ was never awaited" 1771 # run_in_executor test is tricky: the method is a coroutine, 2221 cb = types.coroutine(noop)
|
/third_party/python/Lib/asyncio/ |
H A D | tasks.py | 81 """A coroutine wrapped in a Future.""" 104 raise TypeError(f"a coroutine was expected, got {coro!r}") 155 """Return the list of stack frames for this task's coroutine. 157 If the coroutine is not done, this returns the stack where it is 158 suspended. If the coroutine has completed successfully or was 159 cancelled, this returns an empty list. If the coroutine was 173 returned for a suspended coroutine. 178 """Print the stack or traceback for this task's coroutine. 192 wrapped coroutine on the next cycle through the event loop. 193 The coroutine the [all...] |
/third_party/python/Lib/ |
H A D | inspect.py | 410 """Return true if the object is a coroutine function. 446 """Return true if the object is a coroutine.""" 492 | 16=nested | 32=generator | 64=nofree | 128=coroutine 1898 # ------------------------------------------------ coroutine introspection 1905 def getcoroutinestate(coroutine): 1906 """Get current state of a coroutine object. 1914 if coroutine.cr_running: 1916 if coroutine.cr_suspended: 1918 if coroutine.cr_frame is None: 1923 def getcoroutinelocals(coroutine) [all...] |
H A D | types.py | 247 def coroutine(func): function 248 """Convert regular generator function to a coroutine.""" 251 raise TypeError('types.coroutine() expects a callable') 258 # Check if 'func' is a coroutine function. 284 # 'coro' is a native coroutine object or an iterable coroutine
|
H A D | _collections_abc.py | 63 ## coroutine ## 66 coroutine = type(_coro) variable 128 """Send a value into the coroutine. 135 """Raise an exception in the coroutine. 147 """Raise GeneratorExit inside coroutine. 154 raise RuntimeError("coroutine ignored GeneratorExit") 163 Coroutine.register(coroutine) 233 """Raise GeneratorExit inside coroutine.
|
/third_party/typescript/tests/baselines/reference/ |
H A D | bluebirdStaticThis.js | 42 static coroutine<R>(dit: typeof Promise, generatorFunction: Function): Function;
|