HomeSort by relevance Sort by last modified time
    Searched refs:FileLock (Results 1 - 25 of 41) sorted by null

1 2

  /external/qemu/android/utils/
filelock.h 18 ** a FileLock is useful to prevent several emulator instances from using the same
21 ** create a FileLock object with filelock_create(), the function will return
33 typedef struct FileLock FileLock;
35 extern FileLock* filelock_create ( const char* path );
36 extern void filelock_release( FileLock* lock );
filelock.c 13 #include "android/utils/filelock.h"
43 ** a FileLock is useful to prevent several emulator instances from using the same
46 ** create a FileLock object with filelock_create(), ithis function should return NULL
73 struct FileLock
79 FileLock* next;
83 static FileLock* _all_filelocks;
95 filelock_lock( FileLock* lock )
350 filelock_release( FileLock* lock )
366 FileLock* lock;
373 FileLock*
    [all...]
  /external/chromium/net/disk_cache/
file_lock.cc 9 FileLock::FileLock(BlockFileHeader* header) {
15 void FileLock::Lock() {
21 void FileLock::Unlock() {
file_lock.h 22 // FileLock lock(header);
30 class FileLock {
32 explicit FileLock(BlockFileHeader* header);
33 virtual ~FileLock() {
block_files.cc 60 disk_cache::FileLock lock(header);
108 disk_cache::FileLock lock(header);
451 FileLock lock(header);
506 FileLock lock(header);
  /external/chromium_org/net/disk_cache/
file_lock.cc 22 FileLock::FileLock(BlockFileHeader* header) {
29 FileLock::~FileLock() {
33 void FileLock::Lock() {
40 void FileLock::Unlock() {
file_lock.h 22 // FileLock lock(header);
30 class NET_EXPORT_PRIVATE FileLock {
32 explicit FileLock(BlockFileHeader* header);
33 virtual ~FileLock();
block_files.cc 75 disk_cache::FileLock lock(header_);
127 disk_cache::FileLock lock(header_);
509 FileLock lock(header);
554 FileLock lock(header);
615 // Note that we expect to be called outside of a FileLock... however, we cannot
  /external/chromium_org/third_party/libjingle/source/talk/base/
filelock.h 47 class FileLock {
49 virtual ~FileLock();
53 static FileLock* TryLock(const std::string& path);
57 FileLock(const std::string& path, FileStream* file);
65 DISALLOW_EVIL_CONSTRUCTORS(FileLock);
filelock.cc 28 #include "talk/base/filelock.h"
37 FileLock::FileLock(const std::string& path, FileStream* file)
41 FileLock::~FileLock() {
45 void FileLock::Unlock() {
50 void FileLock::MaybeUnlock() {
59 FileLock* FileLock::TryLock(const std::string& path) {
69 return new FileLock(path, stream)
    [all...]
filelock_unittest.cc 31 #include "talk/base/filelock.h"
49 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname()));
76 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname()));
84 scoped_ptr<FileLock> lock(FileLock::TryLock(temp_file_.pathname()));
89 scoped_ptr<FileLock> lock1(FileLock::TryLock(temp_file_.pathname()));
92 scoped_ptr<FileLock> lock2(FileLock::TryLock(temp_file_.pathname()))
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/
FileLockTest.java 25 import java.nio.channels.FileLock;
30 * Tests class FileLock.
38 class MockFileLock extends FileLock {
72 * @tests java.nio.channels.FileLock#FileLock(FileChannel, long, long,
76 FileLock fileLock1 = new MockFileLock(null, 0, 0, false);
101 * @tests java.nio.channels.FileLock#channel()
105 FileLock lock = new MockFileLock(null, 0, 10, true);
110 * @tests java.nio.channels.FileLock#position()
113 FileLock fileLock1 = new MockFileLock(readWriteChannel, 20, 100, true)
    [all...]
FileChannelLockingTest.java 26 import java.nio.channels.FileLock;
106 FileLock flock = readWriteChannel.lock();
134 FileLock flock1 = readWriteChannel.lock(22, 110, true);
147 FileLock flock1 = readWriteChannel.lock(0, 10, false);
150 FileLock flock2 = readWriteChannel.lock(22, 100, true);
184 FileLock tmpLock = readOnlyChannel.tryLock(0, 10, true);
189 FileLock lock = readOnlyChannel.tryLock(10, 788, true);
201 FileLock adjacentLock = readOnlyChannel.tryLock(1, 3, true);
  /libcore/luni/src/main/java/java/nio/channels/
FileLock.java 23 * A {@code FileLock} represents a locked region of a file.
31 * application can determine whether a {@code FileLock} is shared or exclusive
71 public abstract class FileLock implements AutoCloseable {
99 protected FileLock(FileChannel channel, long position, long size, boolean shared) {
201 return "FileLock[position=" + position + ", size=" + size + ", shared=" + shared + "]";
FileChannel.java 184 public final FileLock lock() throws IOException {
203 * If the lock is obtained successfully then the {@link FileLock} object
250 public abstract FileLock lock(long position, long size, boolean shared)
586 public final FileLock tryLock() throws IOException {
619 public abstract FileLock tryLock(long position, long size, boolean shared)
    [all...]
  /external/chromium_org/third_party/leveldatabase/src/include/leveldb/
env.h 24 class FileLock;
111 virtual Status LockFile(const std::string& fname, FileLock** lock) = 0;
116 virtual Status UnlockFile(FileLock* lock) = 0;
245 class FileLock {
247 FileLock() { }
248 virtual ~FileLock();
251 FileLock(const FileLock&);
252 void operator=(const FileLock&);
305 Status LockFile(const std::string& f, FileLock** l)
    [all...]
  /libcore/luni/src/main/java/java/nio/
FileChannelImpl.java 25 import java.nio.channels.FileLock;
45 private static final Comparator<FileLock> LOCK_COMPARATOR = new Comparator<FileLock>() {
46 public int compare(FileLock lock1, FileLock lock2) {
58 private final SortedSet<FileLock> locks = new TreeSet<FileLock>(LOCK_COMPARATOR);
94 private FileLock basicLock(long position, long size, boolean shared, boolean wait) throws IOException {
110 FileLock pendingLock = new FileLockImpl(this, position, size, shared);
137 private static final class FileLockImpl extends FileLock {
    [all...]
  /external/chromium_org/third_party/leveldatabase/src/util/
env.cc 24 FileLock::~FileLock() {
env_posix.cc 359 class PosixFileLock : public FileLock {
507 virtual Status LockFile(const std::string& fname, FileLock** lock) {
529 virtual Status UnlockFile(FileLock* lock) {
  /frameworks/base/media/java/android/media/
MiniThumbFile.java 29 import java.nio.channels.FileLock;
156 FileLock lock = null;
194 FileLock lock = null;
241 FileLock lock = null;
  /libcore/luni/src/main/java/java/util/logging/
FileHandler.java 27 import java.nio.channels.FileLock;
108 private static final Hashtable<String, FileLock> allLocks = new Hashtable<String, FileLock>();
133 FileLock lock = null;
  /external/chromium_org/third_party/leveldatabase/src/helpers/memenv/
memenv.cc 351 virtual Status LockFile(const std::string& fname, FileLock** lock) {
352 *lock = new FileLock;
356 virtual Status UnlockFile(FileLock* lock) {
  /external/chromium_org/third_party/leveldatabase/
env_chromium.h 141 leveldb::FileLock** lock);
142 virtual leveldb::Status UnlockFile(leveldb::FileLock* lock);
  /external/chromium_org/third_party/leveldatabase/src/db/
db_impl.h 126 FileLock* db_lock_;
  /libcore/luni/src/test/java/libcore/java/nio/channels/
OldFileChannelTest.java 31 import java.nio.channels.FileLock;
76 private FileLock fileLock;
89 fileLock = null;
128 if (null != fileLock) {
130 fileLock.release();
239 FileLock lock = readWriteFileChannel.tryLock(tooBig, 1, false);
249 FileLock lockOne = readWriteFileChannel.tryLock(0, 10, false);
250 FileLock lockTwo = readWriteFileChannel.tryLock(10, 20, false);
    [all...]

Completed in 3694 milliseconds

1 2