Lines Matching defs:std
39 std::string dfxName_;
43 TaskOptions(std::string dfxName, int64_t delayTime, EventQueue::Priority priority, uintptr_t taskId)
51 class EventHandler : public std::enable_shared_from_this<EventHandler> {
53 using CallbackTimeout = std::function<void()>;
62 explicit EventHandler(const std::shared_ptr<EventRunner> &runner = nullptr);
71 static std::shared_ptr<EventHandler> Current();
170 inline bool SendEvent(uint32_t innerEventId, const std::shared_ptr<T> &object,
186 inline bool SendEvent(uint32_t innerEventId, const std::weak_ptr<T> &object,
202 inline bool SendEvent(uint32_t innerEventId, std::unique_ptr<T, D> &object,
218 inline bool SendEvent(uint32_t innerEventId, std::unique_ptr<T, D> &&object,
269 inline bool SendImmediateEvent(uint32_t innerEventId, const std::shared_ptr<T> &object,
284 inline bool SendImmediateEvent(uint32_t innerEventId, const std::weak_ptr<T> &object,
299 inline bool SendImmediateEvent(uint32_t innerEventId, std::unique_ptr<T, D> &object,
314 inline bool SendImmediateEvent(uint32_t innerEventId, std::unique_ptr<T, D> &&object,
369 inline bool SendHighPriorityEvent(uint32_t innerEventId, const std::shared_ptr<T> &object,
385 inline bool SendHighPriorityEvent(uint32_t innerEventId, const std::weak_ptr<T> &object,
401 inline bool SendHighPriorityEvent(uint32_t innerEventId, std::unique_ptr<T, D> &object,
417 inline bool SendHighPriorityEvent(uint32_t innerEventId, std::unique_ptr<T, D> &&object,
433 inline bool PostTask(const Callback &callback, const std::string &name = std::string(),
448 bool PostTaskAtFront(const Callback &callback, const std::string &name = std::string(),
481 return PostTask(callback, std::string(), 0, priority, caller);
496 return PostTask(callback, std::string(), delayTime, priority, caller);
507 inline bool PostImmediateTask(const Callback &callback, const std::string &name = std::string(),
522 inline bool PostHighPriorityTask(const Callback &callback, const std::string &name = std::string(),
538 return PostHighPriorityTask(callback, std::string(), delayTime, caller);
550 inline bool PostIdleTask(const Callback &callback, const std::string &name = std::string(),
566 return PostIdleTask(callback, std::string(), delayTime, caller);
629 inline bool SendSyncEvent(uint32_t innerEventId, const std::shared_ptr<T> &object,
645 inline bool SendSyncEvent(uint32_t innerEventId, const std::weak_ptr<T> &object,
661 inline bool SendSyncEvent(uint32_t innerEventId, std::unique_ptr<T, D> &object,
677 inline bool SendSyncEvent(uint32_t innerEventId, std::unique_ptr<T, D> &&object,
692 inline bool PostSyncTask(const Callback &callback, const std::string &name,
709 return PostSyncTask(callback, std::string(), priority, caller);
792 inline bool SendTimingEvent(uint32_t innerEventId, const std::shared_ptr<T> &object, int64_t taskTime,
809 inline bool SendTimingEvent(uint32_t innerEventId, const std::weak_ptr<T> &object, int64_t taskTime,
826 inline bool SendTimingEvent(uint32_t innerEventId, std::unique_ptr<T, D> &object, int64_t taskTime,
843 inline bool SendTimingEvent(uint32_t innerEventId, std::unique_ptr<T, D> &&object, int64_t taskTime,
859 inline bool PostTimingTask(const Callback &callback, int64_t taskTime, const std::string &name = std::string(),
877 return PostTimingTask(callback, taskTime, std::string(), priority, caller);
905 void RemoveTask(const std::string &name);
912 int RemoveTaskWithRet(const std::string &name);
923 const std::shared_ptr<FileDescriptorListener> &listener, const std::string &taskName);
935 const std::shared_ptr<FileDescriptorListener> &listener, const std::string &taskName,
955 void SetEventRunner(const std::shared_ptr<EventRunner> &runner);
962 inline const std::shared_ptr<EventRunner> &GetEventRunner() const
1027 std::string GetEventName(const InnerEvent::Pointer &event);
1051 inline std::string GetHandlerId()
1075 std::string handlerId_;
1077 std::shared_ptr<EventRunner> eventRunner_;
1080 static thread_local std::weak_ptr<EventHandler> currentEventHandler;