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

Side by Side Diff: native_client_sdk/src/examples/demo/nacl_io_demo/queue.c

Issue 306973002: [NaCl SDK] rename nacl_io demo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months 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 | « native_client_sdk/src/examples/demo/nacl_io_demo/queue.h ('k') | no next file » | 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 #include "queue.h" 6 #include "queue.h"
7 7
8 #include <pthread.h> 8 #include <pthread.h>
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 message = g_queue[g_queue_start]; 105 message = g_queue[g_queue_start];
106 g_queue_start = (g_queue_start + 1) % MAX_QUEUE_SIZE; 106 g_queue_start = (g_queue_start + 1) % MAX_QUEUE_SIZE;
107 g_queue_size--; 107 g_queue_size--;
108 108
109 pthread_mutex_unlock(&g_queue_mutex); 109 pthread_mutex_unlock(&g_queue_mutex);
110 110
111 return message; 111 return message;
112 } 112 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/examples/demo/nacl_io_demo/queue.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698