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

Side by Side Diff: native_client_sdk/src/libraries/nacl_io/inode_pool.h

Issue 12194030: Rename mount (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix c file. Created 7 years, 10 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 #ifndef LIBRARIES_NACL_MOUNTS_INODE_POOL_H_ 6 #ifndef LIBRARIES_NACL_MOUNTS_INODE_POOL_H_
binji 2013/02/05 21:04:14 IO
noelallen1 2013/02/05 21:21:47 Done.
7 #define LIBRARIES_NACL_MOUNTS_INODE_POOL_H_ 7 #define LIBRARIES_NACL_MOUNTS_INODE_POOL_H_
8 8
9 #include <stdlib.h> 9 #include <stdlib.h>
10 #include <vector> 10 #include <vector>
11 11
12 #include "nacl_mounts/osstat.h" 12 #include "nacl_io/osstat.h"
13 #include "pthread.h" 13 #include "pthread.h"
14 #include "utils/auto_lock.h" 14 #include "utils/auto_lock.h"
15 15
16 16
17 class INodePool { 17 class INodePool {
18 public: 18 public:
19 INodePool() 19 INodePool()
20 : max_nodes_(0), 20 : max_nodes_(0),
21 num_nodes_(0) { 21 num_nodes_(0) {
22 pthread_mutex_init(&lock_, NULL); 22 pthread_mutex_init(&lock_, NULL);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 size_t capacity() const { return max_nodes_; } 56 size_t capacity() const { return max_nodes_; }
57 57
58 private: 58 private:
59 size_t num_nodes_; 59 size_t num_nodes_;
60 size_t max_nodes_; 60 size_t max_nodes_;
61 std::vector<ino_t> inos_; 61 std::vector<ino_t> inos_;
62 pthread_mutex_t lock_; 62 pthread_mutex_t lock_;
63 }; 63 };
64 64
65 #endif // LIBRARIES_NACL_MOUNTS_INODE_POOL_H_ 65 #endif // LIBRARIES_NACL_MOUNTS_INODE_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698