• Home
  • Raw
  • Download

Lines Matching full:thread

5 // WARNING: You should probably be using Thread (thread.h) instead.  Thread is
6 // Chrome's message-loop based Thread abstraction, and if you are a
7 // thread running in the browser, there will likely be assumptions
8 // that your thread will have an associated message loop.
10 // This is a simple thread interface that backs to a native operating system
11 // thread. You should use this only when you want a thread that does not have
15 // a new thread, and execute the Delegate's virtual Run() in this new thread
16 // until it has completed, exiting the thread.
18 // NOTE: You *MUST* call Join on the thread to clean up the underlying thread
21 // Start() having been called (and a thread never created). The Delegate
24 // Thread Safety: A SimpleThread is not completely thread safe. It is safe to
25 // access it from the creating thread or from the newly created thread. This
26 // implies that the creator thread should be the thread that calls Join.
31 // DelegateSimpleThread thread(&runner, "good_name_here");
32 // thread.Start();
33 // // Start will return after the Thread has been successfully started and
34 // // initialized. The newly created thread will invoke runner->Run(), and
36 // thread.Join(); // Wait until the thread has exited. You *MUST* Join!
77 // If false, the underlying thread's PlatformThreadHandle will not be kept
85 // configuration involving the thread creation and management.
86 // Every thread has a name, in the form of |name_prefix|/TID, for example
87 // "my_thread/321". The thread will not be created until Start() is called.
93 // Starts the thread and returns only after the thread has started and
97 // Joins the thread. If StartAsync() was used to start the thread, then this
98 // first waits for the thread to start cleanly, then it joins.
101 // Starts the thread, but returns immediately, without waiting for the thread
109 // Returns the thread id, only valid after the thread has started. If the
110 // thread was started using Start(), then this will be valid after the call to
111 // Start(). If StartAsync() was used to start the thread, then this must not
115 // Returns True if the thread has been started and initialized (i.e. if
116 // ThreadMain() has run). If the thread was started with StartAsync(), but it
131 // This is called just before the thread is started. This is called regardless
132 // of whether Start() or StartAsync() is used to start the thread.
135 // This is called just after the thread has been initialized and just before
136 // Run() is called. This is called on the newly started thread.
139 // This is called just before the thread is joined. The thread is started and
148 PlatformThreadId tid_ = kInvalidThreadId; // The backing thread's id.
150 // Set to true when the platform-thread creation has started.
187 // multi-threaded, but don't want to spawn a thread for each small bit of work.