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
CakePHP Cookbook 2.x
Simple Setup Accepting Input in Other Formats Modifying the default REST routes Custom REST Routing Dispatcher Filters Configuring Filters Filter Classes Inline Filters Deployment Check your security Set Code generation MVC [https://en.wikipedia.org/wiki/Model-view-controller] architecture Request dispatcher with clean, custom URLs and routes Built-in validation [https://en.wikipedia.org/wiki/Data_validation] 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 码力 | 1096 页 | 958.62 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
Celery v5.0.1 DocumentationStartStopStep): requires = {'celery.worker.consumer.connection:Connection'} event_dispatcher A app.events.Dispatcher object that can be used to send events. A consumer bootstep must require the Events app.events. Dispatcher[source] Receiver[source] State[source] default_dispatcher(hostname=None, enabled=True, buffer_while_offline=False)[source] dispatcher_cls = 'celery.events.dispatcher:EventDispatcher' version of Celery (5.0). For development docs, go here. celery.events Monitoring Event Receiver+Dispatcher. Events is a stream of messages sent for certain actions occurring in the worker (and clients0 码力 | 2313 页 | 2.13 MB | 1 年前3
共 653 条
- 1
- 2
- 3
- 4
- 5
- 6
- 66













