| OLD | NEW |
| 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 #ifndef QUEUE_H_ | 6 #ifndef QUEUE_H_ |
| 7 #define QUEUE_H_ | 7 #define QUEUE_H_ |
| 8 | 8 |
| 9 #include "ppapi/c/pp_var.h" | 9 #include "ppapi/c/pp_var.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * DequeueMessage will block until a message is available using a condition | 23 * DequeueMessage will block until a message is available using a condition |
| 24 * variable. Again, this may not be as fast as spin-waiting, but will consume | 24 * variable. Again, this may not be as fast as spin-waiting, but will consume |
| 25 * much less CPU (and battery), which is important to consider for ChromeOS | 25 * much less CPU (and battery), which is important to consider for ChromeOS |
| 26 * devices. */ | 26 * devices. */ |
| 27 | 27 |
| 28 void InitializeMessageQueue(); | 28 void InitializeMessageQueue(); |
| 29 int EnqueueMessage(struct PP_Var message); | 29 int EnqueueMessage(struct PP_Var message); |
| 30 struct PP_Var DequeueMessage(); | 30 struct PP_Var DequeueMessage(); |
| 31 | 31 |
| 32 #endif /* QUEUE_H_ */ | 32 #endif /* QUEUE_H_ */ |
| OLD | NEW |