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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/mount_html5fs.cc

Issue 16325024: Move thread_pool.h into utils so it can be shared by more than one example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 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
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 "nacl_io/mount_html5fs.h" 6 #include "nacl_io/mount_html5fs.h"
7 7
8 #include <errno.h> 8 #include <errno.h>
9 #include <ppapi/c/pp_completion_callback.h> 9 #include <ppapi/c/pp_completion_callback.h>
10 #include <ppapi/c/pp_errors.h> 10 #include <ppapi/c/pp_errors.h>
11 #include <stdlib.h> 11 #include <stdlib.h>
12 #include <string.h> 12 #include <string.h>
13 #include <algorithm> 13 #include <algorithm>
14 #include "nacl_io/mount_node_html5fs.h" 14 #include "nacl_io/mount_node_html5fs.h"
15 #include "utils/auto_lock.h" 15 #include "sdk_util/auto_lock.h"
16 16
17 namespace { 17 namespace {
18 18
19 #if defined(WIN32) 19 #if defined(WIN32)
20 int64_t strtoull(const char* nptr, char** endptr, int base) { 20 int64_t strtoull(const char* nptr, char** endptr, int base) {
21 return _strtoui64(nptr, endptr, base); 21 return _strtoui64(nptr, endptr, base);
22 } 22 }
23 #endif 23 #endif
24 24
25 } // namespace 25 } // namespace
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 MountHtml5Fs* self = static_cast<MountHtml5Fs*>(user_data); 183 MountHtml5Fs* self = static_cast<MountHtml5Fs*>(user_data);
184 self->FilesystemOpenCallback(result); 184 self->FilesystemOpenCallback(result);
185 } 185 }
186 186
187 void MountHtml5Fs::FilesystemOpenCallback(int32_t result) { 187 void MountHtml5Fs::FilesystemOpenCallback(int32_t result) {
188 AutoLock lock(&lock_); 188 AutoLock lock(&lock_);
189 filesystem_open_has_result_ = true; 189 filesystem_open_has_result_ = true;
190 filesystem_open_result_ = result; 190 filesystem_open_result_ = result;
191 pthread_cond_signal(&filesystem_open_cond_); 191 pthread_cond_signal(&filesystem_open_cond_);
192 } 192 }
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/nacl_io/mount_dev.cc ('k') | native_client_sdk/src/libraries/nacl_io/mount_http.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698