Commit 11c5cd64 authored by tqcq's avatar tqcq
Browse files

fix deleter inline

parent b500dbfc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ private:
    scoped_refptr<PendingTaskSafetyFlag> flag_;
};

template<typename F, typename... Args, typename = EnableIfT<std::is_void<InvokeResultT<F, Args...>>::value>>
template<typename F, typename... Args>
std::function<void(Args &&...)>
SafeTask(scoped_refptr<PendingTaskSafetyFlag> flag, F &&f)
{
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ class Timer;
struct TimerThreadDeleter {
    TimerThreadDeleter() = default;
    TimerThreadDeleter(TaskQueueBase *owner);
    inline void operator()(Timer *timer);
    void operator()(Timer *timer);

private:
    TaskQueueBase *owner_ = nullptr;