| 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 #ifndef LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ | 5 #ifndef LIBRARIES_NACL_IO_KERNEL_OBJECT_H_ |
| 6 #define LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ | 6 #define LIBRARIES_NACL_IO_KERNEL_OBJECT_H_ |
| 7 | 7 |
| 8 #include <pthread.h> | 8 #include <pthread.h> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "nacl_mounts/path.h" | 13 #include "nacl_io/path.h" |
| 14 | 14 |
| 15 class KernelHandle; | 15 class KernelHandle; |
| 16 class Mount; | 16 class Mount; |
| 17 | 17 |
| 18 // KernelObject provides basic functionality for threadsafe | 18 // KernelObject provides basic functionality for threadsafe |
| 19 // acces to kernel objects such as file descriptors and | 19 // acces to kernel objects such as file descriptors and |
| 20 // file handles. It also provides access to the CWD for | 20 // file handles. It also provides access to the CWD for |
| 21 // path resolution. | 21 // path resolution. |
| 22 class KernelObject { | 22 class KernelObject { |
| 23 public: | 23 public: |
| (...skipping 28 matching lines...) Expand all Loading... |
| 52 | 52 |
| 53 // Kernel lock protects kernel wide resources such as the mount table... | 53 // Kernel lock protects kernel wide resources such as the mount table... |
| 54 pthread_mutex_t kernel_lock_; | 54 pthread_mutex_t kernel_lock_; |
| 55 | 55 |
| 56 // Process lock proctects process wide resources such as CWD, file handles... | 56 // Process lock proctects process wide resources such as CWD, file handles... |
| 57 pthread_mutex_t process_lock_; | 57 pthread_mutex_t process_lock_; |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(KernelObject); | 59 DISALLOW_COPY_AND_ASSIGN(KernelObject); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 #endif // LIBRARIES_NACL_MOUNTS_KERNEL_OBJECT_H_ | 62 #endif // LIBRARIES_NACL_IO_KERNEL_OBJECT_H_ |
| OLD | NEW |