Searched defs:FileBase (Results 1 - 4 of 4) sorted by relevance

/frameworks/compile/libbcc/include/bcc/Support/
H A DFileMutex.h22 #include "bcc/Support/FileBase.h"
26 template<enum FileBase::LockModeEnum LockMode>
27 class FileMutex : public FileBase {
30 : FileBase(pFileToLock + ".lock", O_RDONLY | O_CREAT, kDeleteOnClose) { }
34 unsigned pMaxRetry = FileBase::kDefaultMaxRetryLock,
36 FileBase::kDefaultRetryLockInterval) {
37 return FileBase::lock(LockMode, pNonblocking, pMaxRetry, pRetryInterval);
33 lock(bool pNonblocking = true, unsigned pMaxRetry = FileBase::kDefaultMaxRetryLock, useconds_t pRetryInterval = FileBase::kDefaultRetryLockInterval) argument
H A DFile.h20 #include "bcc/Support/FileBase.h"
24 template<enum FileBase::OpenModeEnum OpenMode>
35 struct FileAttribute<FileBase::kReadMode> {
37 enum { kDefaultLockMode = FileBase::kReadLock };
42 struct FileAttribute<FileBase::kWriteMode> {
44 enum { kDefaultLockMode = FileBase::kWriteLock };
47 template<enum FileBase::OpenModeEnum OpenMode>
48 class File : public FileBase {
51 : FileBase(pFilename, FileAttribute<OpenMode>::kOpenFlags, pFlags) { }
56 unsigned pMaxRetry = FileBase
53 lock(enum LockModeEnum pMode = static_cast<enum LockModeEnum>( FileAttribute<OpenMode>::kDefaultLockMode), bool pNonblocking = true, unsigned pMaxRetry = FileBase::kDefaultMaxRetryLock, useconds_t pRetryInterval = FileBase::kDefaultRetryLockInterval) argument
62 createMap(off_t pOffset, size_t pLength, bool pIsReadOnly = (OpenMode == FileBase::kReadMode)) argument
[all...]
H A DFileBase.h31 class FileBase { class in namespace:bcc
99 FileBase(FileBase &); // Do not implement.
100 void operator=(const FileBase &); // Do not implement.
104 // FileBase. It's a bit set composed by the value defined in
105 // FileBase::FlagEnum.
106 FileBase(const std::string &pFilename, unsigned pOpenFlags, unsigned pFlags);
150 virtual ~FileBase();
/frameworks/compile/libbcc/lib/Support/
H A DFileBase.cpp17 #include "bcc/Support/FileBase.h"
45 FileBase::FileBase(const std::string &pFilename, function in class:FileBase
77 FileBase::~FileBase() {
81 bool FileBase::open() {
100 bool FileBase::checkFileIntegrity() {
129 void FileBase::detectError() {
134 bool FileBase::lock(enum LockModeEnum pMode,
209 void FileBase
[all...]

Completed in 76 milliseconds