| 67 | return d; |
| 68 | } |
| 69 | void executeForcedPayload() { |
| 70 | std::unique_lock lock(payloads()); |
| 71 | if (auto it = payloads()->contains(std::this_thread::get_id())) { |
| 72 | if (it->second) { |
| 73 | it->second(); |
| 74 | it->second = {}; |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | } // namespace aui::impl::AThread |
| 79 | class CurrentThread : public AAbstractThread { |
| 80 | public: |