mirror of
https://github.com/google/googletest.git
synced 2026-02-07 02:09:53 +08:00
Automated Code Change
PiperOrigin-RevId: 864656526 Change-Id: If6e887f492d312730e7ab4e124cad23823497b0d
This commit is contained in:
parent
56efe39831
commit
7c3b4d54e3
@ -1515,13 +1515,13 @@ class [[nodiscard]] ThreadWithParam : public ThreadWithParamBase {
|
||||
|
||||
ThreadWithParam(UserThreadFunc* func, T param, Notification* thread_can_start)
|
||||
: ThreadWithParamBase(new RunnableImpl(func, param), thread_can_start) {}
|
||||
~ThreadWithParam() override {}
|
||||
~ThreadWithParam() override = default;
|
||||
|
||||
private:
|
||||
class RunnableImpl : public Runnable {
|
||||
public:
|
||||
RunnableImpl(UserThreadFunc* func, T param) : func_(func), param_(param) {}
|
||||
~RunnableImpl() override {}
|
||||
~RunnableImpl() override = default;
|
||||
void Run() override { func_(param_); }
|
||||
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user