Skip to content

Commit

Permalink
fix by review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshaoyi committed Feb 23, 2024
1 parent eb14a0f commit d53c6ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/net/include/thread_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ using TaskFunc = void (*)(void *);

struct Task {
Task() = default;
TaskFunc func;
void* arg;
TaskFunc func = nullptr;
void* arg = nullptr;
Task(TaskFunc _func, void* _arg) : func(_func), arg(_arg) {}
};

Expand Down

0 comments on commit d53c6ee

Please sign in to comment.