Home
last modified time | relevance | path

Searched +full:hook +full:- +full:run +full:- +full:in +full:- +full:context (Results 1 – 25 of 298) sorted by relevance

12345678910>>...12

/third_party/typescript/src/testRunner/parallel/
Dworker.ts38 …* Mixes in overrides for `resetTimeout` and `clearTimeout` to support parallel test execution in a…
59 * Mixes in an override for `clone` to support parallel test execution in a worker.
72 * A `Mocha.Suite` subclass to support parallel test execution in a worker.
76 const hook = super._createHook(title, fn); constant
77 Object.setPrototypeOf(hook, Hook.prototype);
78 return hook;
83 * A `Mocha.Hook` subclass to support parallel test execution in a worker.
85 class Hook extends mixin(Mocha.Hook, Timeout) {
89 * A `Mocha.Test` subclass to support parallel test execution in a worker.
95 * Shims a 'bdd'-style test interface to support parallel test execution in a worker.
[all …]
/third_party/node/doc/api/
Dasync_hooks.md3 <!--introduced_in=v8.1.0-->
5 > Stability: 1 - Experimental
7 <!-- source_link=lib/async_hooks.js -->
20 event in `net.createServer()`, or just a single time like in `fs.open()`.
35 // Return the ID of the current execution context.
47 // action after running the constructor, and must be explicitly run to begin
64 // called 0-N times for handles (such as TCPWrap), and will be called exactly 1
82 <!-- YAML
84 -->
86 * `callbacks` {Object} The [Hook Callbacks][] to register
[all …]
Dasync_hooks.json11 …onous resources. It\ncan be accessed using:</p>\n<pre><code class=\"language-js\">const async_hook…
16 …ample, the <code>'connection'</code>\nevent in <code>net.createServer()</code>, or just a single t…
23-js\">const async_hooks = require('async_hooks');\n\n// Return the ID of the current execution con…
30-js\">const ah = require('async_hooks');\nPromise.resolve(1729).then(() => {\n console.log(`eid $…
43hook will trigger when an <code>AsyncResource</code> is instantiated.</p>\n<p>The following is an …
59 … "textRaw": "`fn` {Function} The function to bind to the current execution context.",
62 "desc": "The function to bind to the current execution context."
73 …"desc": "<p>Binds the given function to the current execution context.</p>\n<p>The returned functi…
115 …"textRaw": "`fn` {Function} The function to call in the execution context of this async resource.",
118 … "desc": "The function to call in the execution context of this async resource."
[all …]
Desm.md3 <!--introduced_in=v8.5.0-->
4 <!-- type=misc -->
5 <!-- YAML
8 - version:
9 - v14.17.0
10 pr-url: https://github.com/nodejs/node/pull/35781
12 - version:
13 - v14.13.0
14 pr-url: https://github.com/nodejs/node/pull/35249
16 - version: v14.8.0
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/LTO/
DConfig.h1 //===-Config.h - LLVM Link Time Optimizer Configuration -------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
12 //===----------------------------------------------------------------------===//
36 /// LTO configuration. A linker can configure LTO by setting fields in this data
40 // computeCacheKey in LTO.cpp.
61 /// Run PGO context sensitive IR instrumentation.
64 /// If this field is set, the set of passes run in the middle-end optimizer
70 // identified by the string. Only works with the new pass manager, in
74 /// Setting this field will replace target triples in input files with this
[all …]
/third_party/node/deps/npm/node_modules/is-callable/
D.istanbul.yml5 - .js
6 - .jsx
7 default-excludes: true
11 preserve-comments: false
12 complete-copy: false
13 save-baseline: false
14 baseline-file: ./coverage/coverage-baseline.raw.json
15 include-all-sources: false
16 include-pid: false
17 es-modules: false
[all …]
/third_party/boost/boost/asio/
Dhandler_invoke_hook.hpp5 // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
33 * invoked, in particular that a handler can only be invoked from a thread that
34 * is currently calling @c run() on the corresponding io_context object.
40 * method as the final handler. This is required to ensure that user-defined
41 * objects are not accessed in a way that may violate the guarantees. This
51 * so that the non-const operator() can be used.
58 * void asio_handler_invoke(Function function, my_handler* context)
60 * context->strand_.dispatch(function);
68 // Places in asio that would have previously called the invocation hook to
71 // has the old hooks in place, and if so we want to trigger a compile error.
[all …]
/third_party/boost/libs/asio/include/boost/asio/
Dhandler_invoke_hook.hpp5 // Copyright (c) 2003-2021 Christopher M. Kohlhoff (chris at kohlhoff dot com)
33 * invoked, in particular that a handler can only be invoked from a thread that
34 * is currently calling @c run() on the corresponding io_context object.
40 * method as the final handler. This is required to ensure that user-defined
41 * objects are not accessed in a way that may violate the guarantees. This
51 * so that the non-const operator() can be used.
58 * void asio_handler_invoke(Function function, my_handler* context)
60 * context->strand_.dispatch(function);
68 // Places in asio that would have previously called the invocation hook to
71 // has the old hooks in place, and if so we want to trigger a compile error.
[all …]
/third_party/node/lib/
Dasync_hooks.js68 throw new ERR_ASYNC_CALLBACK('hook.init');
70 throw new ERR_ASYNC_CALLBACK('hook.before');
72 throw new ERR_ASYNC_CALLBACK('hook.after');
74 throw new ERR_ASYNC_CALLBACK('hook.destroy');
76 throw new ERR_ASYNC_CALLBACK('hook.promiseResolve');
86 // The set of callbacks for a hook should be the same regardless of whether
87 // enable()/disable() are run during their execution. The following
88 // references are reassigned to the tmp arrays if a hook is currently being
92 // Each hook is only allowed to be added once.
122 if (index === -1)
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/LTO/
DLTOBackend.cpp1 //===-LTOBackend.cpp - LLVM Link Time Optimizer Backend -------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
14 //===----------------------------------------------------------------------===//
67 auto setHook = [&](std::string PathSuffix, ModuleHookFn &Hook) { in addSaveTemps() argument
68 // Keep track of the hook provided by the linker, which also needs to run. in addSaveTemps()
69 ModuleHookFn LinkerHook = Hook; in addSaveTemps()
70 Hook = [=](unsigned Task, const Module &M) { in addSaveTemps()
71 // If the linker's hook returned false, we need to pass that result in addSaveTemps()
80 if (M.getModuleIdentifier() == "ld-temp.o" || !UseInputModulePath) { in addSaveTemps()
[all …]
/third_party/libwebsockets/lib/system/smd/
DREADME.md6 changes in the other pieces quickly, along with the new state if it is small.
10 message-passing, but the lws apis operate the same across any platforms
17 ![SMD message](/doc-assets/smd-message.png)
20 in a linked-list, and delivered to all other registered participants for that
22 ability to handle multiple event queuing in one event loop trip while
28 ![SMD message](/doc-assets/smd-single-process.png)
31 participants that are in a single process and are informed by callback from lws
32 service thread context.
34 SMD messages can also broadcast between particpants in different lws_contexts in
35 different processes, using existing Secure Streams proxying. In this way
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_queryobj.c6 * to deal in the Software without restriction, including without limitation
12 * paragraph) shall be included in all copies or substantial portions of the
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
21 * IN THE SOFTWARE.
50 * only have 32bits due to a kernel bug and so in that case we make sure to
53 * so we don't need to be taking the upper 32bits in this buggy kernel case we
59 if (brw->screen->hw_has_timestamp == 2) { in brw_raw_timestamp_delta()
60 /* Kernel clips timestamps to 32bits in this case, so we also clip in brw_raw_timestamp_delta()
[all …]
/third_party/e2fsprogs/lib/et/
Dcom_err.texinfo1 \input texinfo @c -*-texinfo-*-
7 @c Note that although this source file is in texinfo format (more
11 @c In order to produce hardcopy documentation from a texinfo file,
12 @c run ``tex com_err.texinfo'' which will load in texinfo.tex,
13 @c provided in this distribution. (texinfo.tex is from the Free
41 that the above copyright notice appear in all copies and that both that
42 copyright notice and this permission notice appear in supporting
44 used in advertising or publicity pertaining to distribution of the software
77 @vskip 2in
100 that the above copyright notice appear in all copies and that both that
[all …]
/third_party/boost/libs/fiber/doc/
Dscheduling.qbk11 The fibers in a thread are coordinated by a fiber manager. Fibers trade
12 control cooperatively, rather than preemptively: the currently-running fiber
15 scheduler to determine which fiber will run next.
20 Each thread has its own scheduler. Different threads in a process may use
25 part, your `algorithm` subclass need not defend against cross-thread
43 // thread registers itself at work-stealing scheduler
50 // start worker-threads first
52 for ( std::uint32_t i = 1 /* count start-thread */; i < thread_count; ++i) {
56 // start-thread registers itself at work-stealing scheduler
63 scheduler needs to know how many threads run the work-stealing scheduler in the
[all …]
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-metadata/
Dminimal-secure-streams.c2 * lws-minimal-secure-streams-metadata
4 * Written in 2010-2020 by Andy Green <andy@warmcat.com>
15 * the policy everything needed to fulfil the stream directly. The other -client
17 * to the -proxy example to actually get the connection done.
19 * In the -client build case, the example does not even init the tls libraries
30 * On your local machine, you can run a SOCKS5 proxy like this
32 * $ ssh -N -D 0.0.0.0:1080 localhost -v
46 * If the -proxy app is fulfilling our connection, then we don't need to have
47 * the policy in the client.
49 * When we build with LWS_SS_USE_SSPC, the apis hook up to a proxy process over
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Instrumentation/
DInstrProfiling.h1 //===- Transforms/Instrumentation/InstrProfiling.h --------------*- C++ -*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
11 //===----------------------------------------------------------------------===//
41 PreservedAnalyses run(Module &M, ModuleAnalysisManager &AM);
42 bool run(Module &M,
65 // Is this lowering for the context-sensitive instrumentation.
78 /// Lower instrumentation intrinsics in the function. Returns true if there
82 /// Register-promote counter loads and stores in loops.
115 /// Emit the necessary plumbing to pull in the runtime initialization.
[all …]
/third_party/icu/icu4c/source/test/perf/ucnvavailperf/
Ducnvavailperf.cpp15 * encoding: UTF-8
23 * for a before-and-after comparison of
26 * Run with one optional command-line argument:
30 * switching between old (pre-ticket-6441) behavior of actually
34 * Code in the ucnv_bld.c haveAvailableConverterList() function:
36 // old pre-ticket-6441 behavior
58 my_alloc(const void *context, size_t size) { in my_alloc() argument
70 my_free(const void *context, void *mem) { in my_free() argument
72 const size_t *p = (const size_t *)mem - 1; in my_free()
73 icuMemUsage -= *p; in my_free()
[all …]
/third_party/node/src/api/
Dhooks.cc1 #include "env-inl.h"
3 #include "node_process-inl.h"
8 using v8::Context;
22 env->RunAtExitCallbacks(); in RunAtExit()
32 env->AtExit(cb, arg); in AtExit()
42 if (!env->destroy_async_id_list()->empty()) in EmitProcessBeforeExit()
45 HandleScope handle_scope(env->isolate()); in EmitProcessBeforeExit()
46 Context::Scope context_scope(env->context()); in EmitProcessBeforeExit()
49 if (!env->process_object()->Get(env->context(), env->exit_code_string()) in EmitProcessBeforeExit()
53 if (!exit_code_v->ToInteger(env->context()).ToLocal(&exit_code)) { in EmitProcessBeforeExit()
[all …]
/third_party/libwebsockets/minimal-examples/secure-streams/minimal-secure-streams-smd/
Dminimal-secure-streams-smd.c2 * lws-minimal-secure-streams-smd
4 * Written in 2010-2020 by Andy Green <andy@warmcat.com>
23 * If the -proxy app is fulfilling our connection, then we don't need to have
24 * the policy in the client.
26 * When we build with LWS_SS_USE_SSPC, the apis hook up to a proxy process over
27 * a Unix Domain Socket. To test that, you need to separately run the
28 * ./lws-minimal-secure-streams-proxy test app on the same machine.
34 "\"schema-version\":1,"
39 * what to do in order to check if the path to
79 * this context / process smd participants... except us, since we in myss_rx()
[all …]
/third_party/node/src/
Dnode_api.cc1 #include "async_wrap-inl.h"
2 #include "env-inl.h"
5 #include "memory_tracker-inl.h"
12 #include "threadpoolwork-inl.h"
14 #include "util-inl.h"
19 node_napi_env__::node_napi_env__(v8::Local<v8::Context> context, in node_napi_env__() argument
21 : napi_env__(context), filename(module_filename) { in node_napi_env__()
26 return node_env()->can_call_into_js(); in can_call_into_js()
31 return ab->SetPrivate(context(), in mark_arraybuffer_as_untransferable()
32 node_env()->untransferable_object_private_symbol(), in mark_arraybuffer_as_untransferable()
[all …]
Denv.cc2 #include "allocated_buffer-inl.h"
4 #include "base_object-inl.h"
5 #include "debug_utils-inl.h"
6 #include "diagnosticfilename-inl.h"
7 #include "memory_tracker-inl.h"
12 #include "node_options-inl.h"
13 #include "node_process-inl.h"
14 #include "node_v8_platform-inl.h"
16 #include "req_wrap-inl.h"
20 #include "util-inl.h"
[all …]
/third_party/flutter/engine/flutter/shell/platform/android/io/flutter/embedding/android/
DFlutterActivity.java2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
11 import android.content.Context;
43 * may be specified explicitly by passing the name of the entrypoint method as a {@code String} in
47 * route may be specified explicitly by passing the name of the route as a {@code String} in
57 * The app bundle path, Dart entrypoint, and initial route can also be controlled in a subclass of
70 * in the cache.
78 * pre-warming a {@link FlutterEngine} would have no impact in this situation.</li>
82 * The following illustrates how to pre-warm and cache a {@link FlutterEngine}:
85 * // Create and pre-warm a FlutterEngine.
[all …]
/third_party/python/Doc/library/
Dthreading.rst1 :mod:`threading` --- Thread-based parallelism
5 :synopsis: Thread-based parallelism.
9 --------------
11 This module constructs higher-level threading interfaces on top of the lower
19 In the Python 2.x series, this module contained ``camelCase`` names
24 .. impl-detail::
26 In CPython, due to the :term:`Global Interpreter Lock
28 can execute Python code at once (even though certain performance-oriented
31 resources of multi-core machines, you are advised to use
33 However, threading is still an appropriate model if you want to run
[all …]
/third_party/mindspore/mindspore/nn/
Dcell.py1 # Copyright 2020-2021 Huawei Technologies Co., Ltd
4 # you may not use this file except in compliance with the License.
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
28 from mindspore.context import ParallelMode
29 from .. import context
49In general, the autograd algorithm will automatically generate the implementation of the gradient …
50 …but if back-propagation(bprop) method is implemented, the gradient function will be replaced by th…
105 # call gc to release GE session resources used by non-used cell objects
136 return str(self.__class__)[8:-2]
[all …]
/third_party/python/Lib/unittest/
Dcase.py27 Raise this exception in a test to skip it.
75 # exc_info -> frame -> exc_info
106 # Swallows all but first exception. If a multi-exception handler
153 return all(_is_subtype(e, basetype) for e in expected)
180 context manager, so check for a 'msg' kwarg and return self.
203 # bpo-23890: manually break a reference cycle
208 """A context manager used to implement TestCase.assertRaises* methods."""
247 """A context manager used to implement TestCase.assertWarns* methods."""
253 # The __warningregistry__'s need to be in a pristine state for tests
255 for v in list(sys.modules.values()):
[all …]

12345678910>>...12