积分充值
 首页
前端开发
AngularDartElectronFlutterHTML/CSSJavaScriptReactSvelteTypeScriptVue.js构建工具
后端开发
.NetC#C++C语言DenoffmpegGoIdrisJavaJuliaKotlinLeanMakefilenimNode.jsPascalPHPPythonRISC-VRubyRustSwiftUML其它语言区块链开发测试微服务敏捷开发架构设计汇编语言
数据库
Apache DorisApache HBaseCassandraClickHouseFirebirdGreenplumMongoDBMySQLPieCloudDBPostgreSQLRedisSQLSQLiteTiDBVitess数据库中间件数据库工具数据库设计
系统运维
AndroidDevOpshttpdJenkinsLinuxPrometheusTraefikZabbix存储网络与安全
云计算&大数据
Apache APISIXApache FlinkApache KarafApache KyuubiApache OzonedaprDockerHadoopHarborIstioKubernetesOpenShiftPandasrancherRocketMQServerlessService MeshVirtualBoxVMWare云原生CNCF机器学习边缘计算
综合其他
BlenderGIMPKiCadKritaWeblate产品与服务人工智能亿图数据可视化版本控制笔试面试
文库资料
前端
AngularAnt DesignBabelBootstrapChart.jsCSS3EchartsElectronHighchartsHTML/CSSHTML5JavaScriptJerryScriptJestReactSassTypeScriptVue前端工具小程序
后端
.NETApacheC/C++C#CMakeCrystalDartDenoDjangoDubboErlangFastifyFlaskGinGoGoFrameGuzzleIrisJavaJuliaLispLLVMLuaMatplotlibMicronautnimNode.jsPerlPHPPythonQtRPCRubyRustR语言ScalaShellVlangwasmYewZephirZig算法
移动端
AndroidAPP工具FlutterFramework7HarmonyHippyIoniciOSkotlinNativeObject-CPWAReactSwiftuni-appWeex
数据库
ApacheArangoDBCassandraClickHouseCouchDBCrateDBDB2DocumentDBDorisDragonflyDBEdgeDBetcdFirebirdGaussDBGraphGreenPlumHStreamDBHugeGraphimmudbIndexedDBInfluxDBIoTDBKey-ValueKitDBLevelDBM3DBMatrixOneMilvusMongoDBMySQLNavicatNebulaNewSQLNoSQLOceanBaseOpenTSDBOracleOrientDBPostgreSQLPrestoDBQuestDBRedisRocksDBSequoiaDBServerSkytableSQLSQLiteTiDBTiKVTimescaleDBYugabyteDB关系型数据库数据库数据库ORM数据库中间件数据库工具时序数据库
云计算&大数据
ActiveMQAerakiAgentAlluxioAntreaApacheApache APISIXAPISIXBFEBitBookKeeperChaosChoerodonCiliumCloudStackConsulDaprDataEaseDC/OSDockerDrillDruidElasticJobElasticSearchEnvoyErdaFlinkFluentGrafanaHadoopHarborHelmHudiInLongKafkaKnativeKongKubeCubeKubeEdgeKubeflowKubeOperatorKubernetesKubeSphereKubeVelaKumaKylinLibcloudLinkerdLonghornMeiliSearchMeshNacosNATSOKDOpenOpenEBSOpenKruiseOpenPitrixOpenSearchOpenStackOpenTracingOzonePaddlePaddlePolicyPulsarPyTorchRainbondRancherRediSearchScikit-learnServerlessShardingSphereShenYuSparkStormSupersetXuperChainZadig云原生CNCF人工智能区块链数据挖掘机器学习深度学习算法工程边缘计算
UI&美工&设计
BlenderKritaSketchUI设计
网络&系统&运维
AnsibleApacheAWKCeleryCephCI/CDCurveDevOpsGoCDHAProxyIstioJenkinsJumpServerLinuxMacNginxOpenRestyPrometheusServertraefikTrafficUnixWindowsZabbixZipkin安全防护系统内核网络运维监控
综合其它
文章资讯
 上传文档  发布文章  登录账户
IT文库
  • 综合
  • 文档
  • 文章

无数据

分类

全部后端开发(53)C++(27)Python(15)Django(13)Julia(10)云计算&大数据(10)VirtualBox(10)系统运维(2)Tornado(2)网络与安全(2)

语言

全部英语(55)中文(繁体)(10)中文(简体)(1)英语(1)

格式

全部PDF文档 PDF(58)其他文档 其他(7)DOC文档 DOC(1)PPT文档 PPT(1)
 
本次搜索耗时 0.015 秒,为您找到相关结果约 67 个.
  • 全部
  • 后端开发
  • C++
  • Python
  • Django
  • Julia
  • 云计算&大数据
  • VirtualBox
  • 系统运维
  • Tornado
  • 网络与安全
  • 全部
  • 英语
  • 中文(繁体)
  • 中文(简体)
  • 英语
  • 全部
  • PDF文档 PDF
  • 其他文档 其他
  • DOC文档 DOC
  • PPT文档 PPT
  • 默认排序
  • 最新排序
  • 页数排序
  • 大小排序
  • 全部时间
  • 最近一天
  • 最近一周
  • 最近一个月
  • 最近三个月
  • 最近半年
  • 最近一年
  • pdf文档 Building a Coroutine-Based Job System Without Standard Library

    to pause the video stream during the talk. 23 REVIEW C++ COROUTINE IN 10 MINS • Core concepts: promise object, coroutine handle • Keywords: co_return, co_await, co_yield(not covered here) • awaitables https://lewissbaker.github.io/2018/09/05/understanding -the-promise-type • User defined type(s) that stores whatever you want/required Promise Object Coroutine Handle • Literally a handle • Two different coroutine_handle<>, coroutine_handle<Promise> • coroutine_handle<>: resume/destroy coroutine, check status(done) • coroutine_handle<Promise>: provide access to the promise object(promise) Useful to know For convenience:
    0 码力 | 120 页 | 2.20 MB | 5 月前
    3
  • pdf文档 From Eager Futures/Promises to Lazy Continuations: Evolving an Actor Library Based on Lessons Learned from Large-Scale Deployments

    Non-blocking! writer.Close(); thread x thread yfutures/promises: “buffered channel” Promise promise; Channel::Reader reader = channel.Reader(); reader.Read(); // Blocks! Non-blocking! writer.Close(); thread x thread yfutures/promises: “buffered channel” Promise promise; Channel::Reader reader = channel.Reader(); reader.Read(); // Blocks! Close(); thread x thread yfutures/promises: “buffered channel” Promise promise; Future future = promise.Future(); reader.Read(); // Blocks! Channel::Writer writer
    0 码力 | 264 页 | 588.96 KB | 5 月前
    3
  • pdf文档 Deciphering C++ Coroutines

    } }8/55 The coroutine promise promise type9/55 Cheat Sheet - Promise Type 1 struct ReturnType / std:: coroutine_traits < ReturnType , ...> { 2 struct promise_type { 3 promise_type (T...); // opt. 4 Awaitable 1 struct Awaitable { 2 bool await_ready (); 3 auto await_suspend (std:: coroutine_handle < promise_type >); 4 auto await_resume (); 5 };12/55 Cheat Sheet: Map of Coroutine Land13/55 Get the cheat Async { struct promise_type { /* ... */ }; };34/55 Setting up the Async object template struct Async { struct promise_type { /* ... */ }; std:: coroutine_handle <promise_type > self ;
    0 码力 | 156 页 | 1.79 MB | 5 月前
    3
  • pdf文档 Combining Co-Routines and Functions into a Job System

    Coroutines in VGJS – Example void test() { Coro retObj = driver(13); schedule(retObj); //put promise into a VGJS queue, a thread will grab it in its loop if(retObj.ready()) std::cout << "Result " << Coro retObj = driver(13); schedule(retObj); } Coro_promise Coro_promise VGJS Coroutines Coro driver(int i) { co_await promise.initial_suspend(); try { Coro retObj = coroTest(i); coroTest(i); int res = co_await retObj; co_return 0.0f; } catch (...) { promise.unhandled_exception(); } FinalSuspend: co_await promise.final_suspend(); } Coro coroTest(int i) { co_await thread_index_t{
    0 码力 | 39 页 | 1.23 MB | 5 月前
    3
  • pdf文档 How Meta Made Debugging Async Code Easier with Coroutines and Senders

    .hpp:220 frame #3 : 0x0000555555571da5 in unifex::_ch::continuation_handlepromise<(anonymous namespace)::word_stats, false>::type>::resume() () at /home/cppcon/cppcon24-async-d () at /hom frame #3 : 0x0000555555571da5 in unifex::_ch::continuation_handlepromise<(a frame #4 : 0x0000555555579f86 in unifex::_task::_sr_thunk_task<(anonymous namespace)::word_s unifex::_seq::_sndrpromise::type:: frame #13: 0x000055555557dc9c in unifex::_await::_sender_task
    0 码力 | 131 页 | 907.41 KB | 5 月前
    3
  • pdf文档 Coroutines and Structured Concurrency in Practice

    before suspending Promise::await_transform() to the rescue Any awaitable is passed through await_transform() We can use it to stash a type-erased pointer to the awaiteeclass Promise { void* awaitee_ await_transform(T&& t) { return Interceptor{this, &t}; } template struct Interceptor { Promise* p; T* t; auto await_suspend(coroutine_handle<> h) { // Stash a type-erased reference (awaitee_) { cancelFn_( awaitee_, coroutine_handle<Promise>:: from_promise(*this)); } } };Destroying the coroutine coroutine_handle::destroy() can only
    0 码力 | 103 页 | 1.98 MB | 5 月前
    3
  • pdf文档 From Functions to Coroutines

    is a generalized subroutine that can be suspended and resumed. ▪ A coroutine consists of ▪ A promise object to manipulate it from the inside ▪ A handle to resume or destroy it from the outside ▪ State the following { Promise promise; co_await promise.initial_suspend(); try { } catch (...) { promise.unhandled_exception(); } FinalSuspend: co_await promise.final_suspend(); }Coroutine the coroutine activation frame ▪ Promise prom created ▪ Generator gen created ▪ Handle to the promise created and locally stored prom.get_return_object() ▪ Promise initially suspended: prom.initial_suspend()
    0 码力 | 29 页 | 510.47 KB | 5 月前
    3
  • pdf文档 Taro: Task graph-based Asynchronous Programming Using C++ Coroutine

    C++ function requires function itself • But implementing a C++ coroutine requires: - Coroutine - Promise - Awaitable - Coroutine handle CppNow23 talk: An Introduction to C++ Coroutines Through a Thread std::suspend_always{}; 12 } 13 cudaStreamDestory(stream); 14 } 2 struct Coro { 3 4 struct promise_type { 5 std::suspend_always initial_suspend() noexcept { return {}; } 6 std::suspend_always return std::coroutine_handle<promise_type>::from_promise(*this); } 9 void return_void() {} 10 void unhandled_exception() {} 11 }; 12 13 Coro(std::coroutine_handle<promise_type> handle): handle{handle}
    0 码力 | 84 页 | 8.82 MB | 5 月前
    3
  • pdf文档 Concurrency Patterns I

    placeholder for a value, which is set by a promise. auto future = std::async([]{ return "LazyOrEager"; }); future.get(); Future: receiver get Promise: sender set channelConcurrency Patterns Synchronization state change or asks for the state change. ▪ Push principle: condition variables, future/promise pairs, atomics (C++20), and semaphores (C++20) ▪ Pull principle: not natively supported in C++ C++ ▪ The waiting thread waits with or without a time limit. ▪ Condition variables, and future/promise pairs ▪ The notification is sent to one or all waiting threads. ▪ Shared futures, condition variables
    0 码力 | 39 页 | 1.14 MB | 5 月前
    3
  • pdf文档 Back to Basics: Concurrency

    certainly want a mutex plus a condition_variable. If produce/consume happen only once, consider std::promise/std::future, which we aren’t going to talk about in this presentation. It still uses mutex+cv internally wait. ● wait blocks only until the counter becomes zero.Question BreakOne-slide intro to C++11 promise/future std::future f1 = std::async([]() { puts("Hello from thread A!"); return 1; }); are available from threads A and B 46 This slide shows the future side (Frosty). Not shown: the promise side (Pat). std::async creates a new thread on each call. The STL’s async has serious perf caveats
    0 码力 | 58 页 | 333.56 KB | 5 月前
    3
共 67 条
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
前往
页
相关搜索词
BuildingCoroutineBasedJobSystemWithoutStandardLibraryFromEagerFuturesPromisestoLazyContinuationsEvolvinganActoronLessonsLearnedfromLargeScaleDeploymentsDecipheringC++CoroutinesCombiningCoRoutinesandFunctionsintoHowMetaMadeDebuggingAsyncCodeEasierwithSendersStructuredConcurrencyinPracticeTaroTaskgraphbasedAsynchronousProgrammingUsingPatternsBackBasics
IT文库
关于我们 文库协议 联系我们 意见反馈 免责声明
本站文档数据由用户上传或本站整理自互联网,不以营利为目的,供所有人免费下载和学习使用。如侵犯您的权益,请联系我们进行删除。
IT文库 ©1024 - 2025 | 站点地图
Powered By MOREDOC AI v3.3.0-beta.70
  • 关注我们的公众号【刻舟求荐】,给您不一样的精彩
    关注我们的公众号【刻舟求荐】,给您不一样的精彩