Index: base/thread.cc |
=================================================================== |
--- base/thread.cc (revision 8282) |
+++ base/thread.cc (working copy) |
@@ -143,13 +143,14 @@ |
message_loop.set_thread_name(name_); |
message_loop_ = &message_loop; |
+ // Let the thread do extra initialization. |
+ // Let's do this before signaling we are started. |
+ Init(); |
+ |
startup_data_->event.Signal(); |
// startup_data_ can't be touched anymore since the starting thread is now |
// unlocked. |
- // Let the thread do extra initialization. |
- Init(); |
- |
message_loop.Run(); |
// Let the thread do extra cleanup. |