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

Side by Side Diff: native_client_sdk/src/examples/demo/googledrivefs_demo/queue.cc

Issue 2156503002: [NaCl SDK] Expose Google Drive to nacl_io. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2016 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 #include "queue.h" 5 #include "queue.h"
6 6
7 #include <pthread.h> 7 #include <pthread.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include "ppapi/c/pp_var.h" 10 #include "ppapi/c/pp_var.h"
11 11
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 } 102 }
103 103
104 message = g_queue[g_queue_start]; 104 message = g_queue[g_queue_start];
105 g_queue_start = (g_queue_start + 1) % MAX_QUEUE_SIZE; 105 g_queue_start = (g_queue_start + 1) % MAX_QUEUE_SIZE;
106 g_queue_size--; 106 g_queue_size--;
107 107
108 pthread_mutex_unlock(&g_queue_mutex); 108 pthread_mutex_unlock(&g_queue_mutex);
109 109
110 return message; 110 return message;
111 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698