Building a Coroutine-Based Job System Without Standard Librarytoken_promise::initial_suspend token_promise aka token_dispatcher, where jobs got scheduled In our system, initial_suspend_awaitable is called token_dispatcher. We customize this type to dispatch our jobs. when we invoke a new coroutine. It happens, again, in the initial suspend awaitable, aka, token dispatcher. When we invoke await_suspend. 5253 COROUTINE JOB SYSTEM Scheduler Worker Worker Worker code when we invoke the coroutine. 6768 token_dispatcher struct token_dispatcher; class token_promise { token get_return_object(); token_dispatcher inital_suspend() { auto& scheduler = Scheduler::Get();0 码力 | 120 页 | 2.20 MB | 6 月前3
 Apache Karaf Decanter 2.x - Documentationproperty. For instance: regex=(.*foo.*) Only the line matching the regex will be sent to the dispatcher. For instance, instead of the log collector, you can create the following etc/org test, the line will be parsed as follows (the file collector will send the following data to the dispatcher): first->this second->is third->a fourth->test If the keys configuration is not set, then key-0 here, the line will be parsed as follows (the file collector will send the following data to the dispatcher): key-0->test It’s also possible to use keys to identify each regex group. To use this parser0 码力 | 64 页 | 812.01 KB | 1 年前3
 Just-In-Time Compilation: The Next Big ThingCOMPILE-TIME DISPATCH constexpr auto make_dispatcher(const auto& mappings) { } 6 . 6COMPILE-TIME DISPATCH COMPILE-TIME DISPATCH constexpr auto make_dispatcher(const auto& mappings) { return "boost::mp11::mp_list<" }, ',') + '>'; } 6 . 6COMPILE-TIME DISPATCH COMPILE-TIME DISPATCH constexpr auto make_dispatcher(const auto& mappings) { return "boost::mp11::mp_list<" + join(mappings, [](const auto& OR VOID OTHERWISE - RETURNS A HANDLER FOR A GIVEN EVENT OR VOID OTHERWISE constexpr auto make_dispatcher(const auto& mappings) { return "boost::mp11::mp_list<" + join(mappings, [](const auto&0 码力 | 222 页 | 5.45 MB | 6 月前3
 Java 应用与开发 - Java EE 过滤器编程/admin/* 7 <dispatcher>FORWARDdispatcher> 8 <dispatcher>INCLUDEdispatcher> 9 <dispatcher>REQUESTdispatcher> 10 <dispatcher>ERRORdispatcher> 11 大纲 过滤器概述 过滤器概述 Java EE 过滤器 API Java EE 过滤器编程和配置 过滤器的主要任务 本节习题 过滤器编程示例 <dispatcher> 从 Servlet API 2.4 开始,过滤器映射增加了根据 请求类型有选择的对映射地址进行过滤,提供标记 <dispatcher> 实现请求类型的选择。 ▶ REQUEST 当请求直接来自客户时,过滤器才 工作。 ▶ FORWARD 当请求是来自0 码力 | 31 页 | 605.91 KB | 1 年前3
 Bridging the Gap: Writing Portable Programs for CPU and GPUdevice template for dispatcher57/66 Motivation Patterns The dark path Cuda proposal Thank you Function dispatch triple - Solution 1. host device template for dispatcher 2. Dispatcher forwards arguments Cuda proposal Thank you Function dispatch triple - Solution 1. host device template for dispatcher 2. Dispatcher forwards arguments to one host device function. 3. Disable cuda warnings57/66 Motivation Cuda proposal Thank you Function dispatch triple - Solution 1. host device template for dispatcher 2. Dispatcher forwards arguments to one host device function. 3. Disable cuda warnings 4. Take care0 码力 | 124 页 | 4.10 MB | 6 月前3
 CakePHP Cookbook 2.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641 Dispatcher Filters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . database interaction • Application scaffolding29 • Code generation • MVC30 architecture • Request dispatcher with clean, custom URLs and routes • Built-in validation31 • Fast and flexible templating32 (PHP a user requesting a page or resource in your application. This request is first processed by a dispatcher which will select the correct controller object to handle it. Once the request arrives at the0 码力 | 820 页 | 2.52 MB | 1 年前3
 Apache Shiro 1.2.x Reference Manual 中文翻译/* <dispatcher>REQUESTdispatcher> <dispatcher>FORWARDdispatcher> <dispatcher>INCLUDEdispatcher> <dispatcher>ERRORdispatcher> 这假设一个 Shiro/* <dispatcher>REQUESTdispatcher> <dispatcher>FORWARDdispatcher> <dispatcher>INCLUDEdispatcher> <dispatcher>ERRORdispatcher> 该定义期望你的INI/* <dispatcher>REQUESTdispatcher> <dispatcher>FORWARDdispatcher> <dispatcher>INCLUDEdispatcher> <dispatcher>ERRORdispatcher> 1c: Run0 码力 | 196 页 | 2.34 MB | 1 年前3
 Apache Karaf Cellar 4.x - Documentationfilter/* <dispatcher>FORWARDdispatcher> <dispatcher>INCLUDEdispatcher> <dispatcher>REQUESTdispatcher>com Event Handler is the processor which processes remote events received through the topic. • Event Dispatcher is the unit which decides which event should be processed by which event handlers. • Command node has a listener registered on that topic and gets/sends all events to the event dispatcher. When the Event Dispatcher receives an event, it looks up an internal registry (in our case the OSGi Service 0 码力 | 39 页 | 177.09 KB | 1 年前3
 Bring Your Own Codegen to TVMMetal, VTA Serialized Subgraph Library Relay Runtime (VM, Graph Runtime, Interpreter) Your Dispatcher Target Device General Devices (CPU/GPU/FPGA) Mark supported operators or subgraphs 1. Implement Metal, VTA Serialized Subgraph Library Relay Runtime (VM, Graph Runtime, Interpreter) Your Dispatcher Target Device General Devices (CPU/GPU/FPGA) Mark supported operators or subgraphs 1. Implement Metal, VTA Serialized Subgraph Library Relay Runtime (VM, Graph Runtime, Interpreter) Your Dispatcher Target Device General Devices (CPU/GPU/FPGA) Mark supported operators or subgraphs 1. Implement0 码力 | 19 页 | 504.69 KB | 6 月前3
 ServiceComb java SDK详解servicecomb: http: dispatcher: edge: default: enabled: true prefix: rest withVersion: true prefixSegmentCount: 1 如果内部微服务URL规则为: /{v1/v2/......}/path 则可以配置为 servicecomb: http: dispatcher: edge: default: rest withVersion: true prefixSegmentCount: 2 如果内部微服务URL规则为: /path 则可以配置为 servicecomb: http: dispatcher: edge: default: enabled: true prefix: rest withVersion: true prefixSegmentCount: 3 Edge Service-自动路由2 有的场景下,业务是从传统应用移植过来的,有的URL已经固定,并且不满足自动路由规则,此时必须考虑兼容问题 对于这些不规则的URL,可以追加通过枚举的方式来指定路由规则 servicecomb: http: dispatcher: edge: url: enabled: true mappings: businessAV1: path: "/a/b/.*" microserviceName: businessA0 码力 | 21 页 | 1.15 MB | 1 年前3
共 492 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 50
 













