Skip to content

Commit 9ac35f5

Browse files
committed
Fixed future-state-error on startup
1 parent 4b1a5ed commit 9ac35f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trantor/net/EventLoopThread.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ class EventLoopThread : NonCopyable
4040
EventLoop *_loop;
4141
std::string _loopThreadName;
4242
void loopFuncs();
43-
std::thread _thread;
4443
std::promise<EventLoop *> _promiseForLoopPointer;
4544
std::promise<int> _promiseForRun;
4645
std::promise<int> _promiseForLoop;
4746
std::once_flag _once;
47+
std::thread _thread;
4848
};
4949

5050
} // namespace trantor

0 commit comments

Comments
 (0)