/commonlibrary/ets_utils/js_concurrent_module/taskpool/ |
H A D | task_runner.h | 26 using CallbackFunction = std::function<void(void*)>; 28 explicit TaskStartCallback(CallbackFunction function = nullptr, void* dataArgs = nullptr) in TaskStartCallback() 29 : callback(function), data(dataArgs) in TaskStartCallback()
|
H A D | worker.h | 56 using DebuggerPostTask = std::function<void()>;
78 // the function will only be called when the task is finished or
115 void DebuggerOnPostTask(std::function<void()>&& task);
|
H A D | worker.cpp | 160 void Worker::DebuggerOnPostTask(std::function<void()>&& task)
in DebuggerOnPostTask() 274 workerEngine->SetDebuggerPostTaskFunc([this](std::function<void()>&& task) {
in PrepareForWorkerInstance() 572 "taskpool:: function may not be concurrent.");
in InitTaskPoolFunc()
|
/commonlibrary/ets_utils/js_concurrent_module/worker/ |
H A D | worker_runner.h | 26 using CallbackFunction = std::function<void(void*)>;
28 explicit WorkerStartCallback(CallbackFunction function = nullptr, void* dataArgs = nullptr)
in WorkerStartCallback() 29 : callback(function), data(dataArgs)
in WorkerStartCallback()
|
H A D | worker.h | 45 using DebuggerPostTask = std::function<void()>; 469 void RegisterCallbackForWorkerEnv(std::function<void (napi_env)> callback) in RegisterCallbackForWorkerEnv() 548 void DebuggerOnPostTask(std::function<void()>&& task); 599 std::function<void(napi_env)> workerEnvCallback_;
|
/commonlibrary/memory_utils/libpurgeablemem/cpp/include/ |
H A D | purgeable_mem_builder.h | 41 void SetRebuildSuccessCallback(std::function<void()> &callback) in SetRebuildSuccessCallback() 54 std::function<void()> rebuildSuccessCallback_ = nullptr;
|
H A D | purgeable_mem_base.h | 41 * function return true, until EndRead() is called. 57 * at a later time when this function returns. 68 * function return true, until EndWrite() is called. 85 * at a later time when this function returns. 93 * This function should be protected by BeginWrite()/EndWrite(). 100 * This function should be protected by BeginRead()/EndRead() 115 void SetRebuildSuccessCallback(std::function<void()> &callback);
|
/commonlibrary/c_utils/base/include/ |
H A D | timer.h | 51 using TimerCallback = std::function<void ()>; 53 using TimerListCallback = std::function<void (int timerFd)>; 97 * @param callback Indicates the callback function of a timed event.
|
H A D | io_event_common.h | 30 using EventCallback = std::function<void()>;
|
H A D | thread_pool.h | 38 typedef std::function<void()> Task; 102 void WorkInThread(); // main function in each thread.
|
H A D | safe_map.h | 198 using SafeMapCallBack = std::function<void(const K, V&)>;
|
H A D | refbase.h | 73 * @brief Callback function used to destroy the corresponding 76 using RefPtrCallback = std::function<void()>; 88 * @brief Sets the callback function. 90 * @param callback Callback function used to delete 96 * @brief Removes the current callback function by setting it to a `nullptr`. 121 * @brief Checks if the pointer to the callback function is a `nullptr`. 123 * @return `true` if the callback function is a `nullptr`; 244 using CanPromote = std::function<bool()>; 268 RefPtrCallback callback_ = nullptr; // Callback function to deallocate the corresponding RefBase object 382 * @note This function construct [all...] |
/commonlibrary/c_utils/base/src/ |
H A D | timer_event_handler.h | 30 using TimerCallback = std::function<void(int timerFd)>;
|
H A D | event_handler.h | 32 using Callback = std::function<void()>;
|
H A D | event_reactor.h | 36 using TimerCallback = std::function<void(int timerFd)>;
|
H A D | timer.cpp | 158 std::function<void(int)> cb = [this, callback](int fd) { this->DoTimerListCallback(callback, fd); }; in DoRegister()
|
/commonlibrary/ets_utils/js_concurrent_module/utils/locks/ |
H A D | async_lock_manager.h | 63 static napi_value CreateLockStates(napi_env env, const std::function<bool(const AsyncLockIdentity& ident)> &pred);
|
H A D | graph.h | 51 using VertexPrinter = std::function<std::string(VertexId)>; 52 using EdgePrinter = std::function<std::string(EdgeDataCPtr)>;
|
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/ |
H A D | udp.rs | 212 /// The function returns: 248 /// The function is usually paired with `writable`. 251 /// The function returns: 285 /// The function returns: 318 /// the number of bytes read and the origin. The function must be called 324 /// The function returns: 353 /// The function is usually paired with `readable` and must be called with 359 /// The function returns: 443 /// The function returns: 490 /// This function i [all...] |
/commonlibrary/c_utils/base/test/fuzztest/refbase_fuzzer/ |
H A D | refbase_fuzzer.cpp | 88 const std::vector<std::function<void(SingleThreadRefCounts*, WeakRefCounter*&)>> decOperations = { 142 const std::vector<std::function<void(SingleThreadRefCounts*, WeakRefCounter*&)>> readOrIncOperations = {
|
/commonlibrary/c_utils/base/test/fuzztest/timer_fuzzer/ |
H A D | timer_fuzzer.cpp | 38 const std::vector<std::function<void(FuzzedDataProvider*, Utils::Timer&, vector<uint32_t>&)>> ops = {
|
/commonlibrary/ets_utils/js_sys_module/process/ |
H A D | js_process.h | 124 * @param function The parameter is callback event.
126 void On(napi_env env, napi_value str, napi_value function);
|
H A D | js_process.cpp | 220 void Process::On(napi_env env, napi_value str, napi_value function)
in On() argument 235 if (function == nullptr) {
in On() 236 HILOG_ERROR("function is nullptr");
in On() 240 napi_status status = napi_create_reference(env, function, 1, &myCallRef);
in On()
|
/commonlibrary/memory_utils/libpurgeablemem/cpp/src/ |
H A D | purgeable_mem_base.cpp | 236 void PurgeableMemBase::SetRebuildSuccessCallback(std::function<void()> &callback) in SetRebuildSuccessCallback()
|
/commonlibrary/c_utils/base/test/fuzztest/parcel_fuzzer/ |
H A D | parcel_fuzzer.cpp | 156 const std::vector<std::function<void(FuzzedDataProvider*, Parcel&)>> operations = { 417 const std::vector<std::function<void(FuzzedDataProvider*, Parcel&)>> unaligned_operations = { 482 const std::vector<std::function<void(FuzzedDataProvider*, Parcel&)>> other_operations = {
|