Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: ppapi/api/ppb_message_loop.idl

Issue 119493002: Rename GetForCurrentThread() in comments to GetCurrent(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | ppapi/c/ppb_message_loop.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 /** 6 /**
7 * Defines the PPB_MessageLoop interface. 7 * Defines the PPB_MessageLoop interface.
8 */ 8 */
9 label Chrome { 9 label Chrome {
10 M25 = 1.0 10 M25 = 1.0
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 * (You can also create the message loop resource on the background thread, 51 * (You can also create the message loop resource on the background thread,
52 * but then the main thread will have no reference to it should you want to 52 * but then the main thread will have no reference to it should you want to
53 * call PostWork()). 53 * call PostWork()).
54 * 54 *
55 * 55 *
56 * THREAD HANDLING 56 * THREAD HANDLING
57 * 57 *
58 * The main thread has an implicitly created message loop. The main thread is 58 * The main thread has an implicitly created message loop. The main thread is
59 * the thread where PPP_InitializeModule and PPP_Instance functions are called. 59 * the thread where PPP_InitializeModule and PPP_Instance functions are called.
60 * You can retrieve a reference to this message loop by calling 60 * You can retrieve a reference to this message loop by calling
61 * GetForMainThread() or, if your code is on the main thread, 61 * GetForMainThread() or, if your code is on the main thread, GetCurrent() will
62 * GetForCurrentThread() will also work. 62 * also work.
63 * 63 *
64 * Some special threads created by the system can not have message loops. In 64 * Some special threads created by the system can not have message loops. In
65 * particular, the background thread created for audio processing has this 65 * particular, the background thread created for audio processing has this
66 * requirement because it's intended to be highly responsive to keep up with 66 * requirement because it's intended to be highly responsive to keep up with
67 * the realtime requirements of audio processing. You can not make PPAPI calls 67 * the realtime requirements of audio processing. You can not make PPAPI calls
68 * from these threads. 68 * from these threads.
69 * 69 *
70 * Once you associate a message loop with a thread, you don't have to keep a 70 * Once you associate a message loop with a thread, you don't have to keep a
71 * reference to it. The system will hold a reference to the message loop for as 71 * reference to it. The system will hold a reference to the message loop for as
72 * long as the thread is running. The current message loop can be retrieved 72 * long as the thread is running. The current message loop can be retrieved
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 * 262 *
263 * @return 263 * @return
264 * - PP_OK: The request to quit was successfully posted. 264 * - PP_OK: The request to quit was successfully posted.
265 * - PP_ERROR_BADRESOURCE: The message loop was invalid. 265 * - PP_ERROR_BADRESOURCE: The message loop was invalid.
266 * - PP_ERROR_WRONG_THREAD: You are attempting to quit the main thread. 266 * - PP_ERROR_WRONG_THREAD: You are attempting to quit the main thread.
267 * The main thread's message loop is managed by the system and can't be 267 * The main thread's message loop is managed by the system and can't be
268 * quit. 268 * quit.
269 */ 269 */
270 int32_t PostQuit([in] PP_Resource message_loop, PP_Bool should_destroy); 270 int32_t PostQuit([in] PP_Resource message_loop, PP_Bool should_destroy);
271 }; 271 };
OLDNEW
« no previous file with comments | « no previous file | ppapi/c/ppb_message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698