Searched refs:lock (Results 26 - 50 of 699) sorted by relevance

1234567891011>>

/haiku/src/add-ons/kernel/drivers/graphics/framebuffer/
H A Ddriver.h13 #include <lock.h>
/haiku/headers/private/fs_shell/
H A Dfssh_lock.h55 extern void fssh_recursive_lock_init(fssh_recursive_lock *lock, const char *name);
57 extern void fssh_recursive_lock_init_etc(fssh_recursive_lock *lock, const char *name,
59 extern void fssh_recursive_lock_destroy(fssh_recursive_lock *lock);
60 extern fssh_status_t fssh_recursive_lock_lock(fssh_recursive_lock *lock);
61 extern fssh_status_t fssh_recursive_lock_trylock(fssh_recursive_lock *lock);
62 extern void fssh_recursive_lock_unlock(fssh_recursive_lock *lock);
63 extern int32_t fssh_recursive_lock_get_recursion(fssh_recursive_lock *lock);
64 extern void fssh_recursive_lock_transfer_lock(fssh_recursive_lock *lock, fssh_thread_id thread);
66 extern void fssh_rw_lock_init(fssh_rw_lock* lock, const char* name);
68 extern void fssh_rw_lock_init_etc(fssh_rw_lock* lock, cons
[all...]
/haiku/src/kits/locale/
H A DCatalog.cpp59 BAutolock lock(&fLock);
60 if (!lock.IsLocked())
77 BAutolock lock(&fLock);
78 if (!lock.IsLocked())
95 BAutolock lock(&fLock);
96 if (!lock.IsLocked())
116 BAutolock lock(&fLock);
117 if (!lock.IsLocked())
137 BAutolock lock(&fLock);
138 if (!lock
[all...]
/haiku/headers/private/userlandfs/legacy/
H A Dlock.h20 typedef struct lock lock; typedef in typeref:struct:lock
25 struct lock { struct
34 extern _IMPEXP_KERNEL int new_lock(lock *l, const char *name);
35 extern _IMPEXP_KERNEL int free_lock(lock *l);
/haiku/src/tests/kits/storage/virtualdrive/
H A Dlock.h16 typedef struct lock lock; typedef in typeref:struct:lock
21 struct lock { struct
30 extern _IMPEXP_KERNEL int new_lock(lock *l, const char *name);
31 extern _IMPEXP_KERNEL int free_lock(lock *l);
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_rwlock.cpp100 // writer_count includes the write lock owner as well as waiting
101 // writers. reader_count includes read lock owners only.
227 // has the write lock
295 // #pragma mark - public lock functions
299 pthread_rwlock_init(pthread_rwlock_t* lock, const pthread_rwlockattr_t* _attr) argument
305 return ((SharedRWLock*)lock)->Init();
307 return ((LocalRWLock*)lock)->Init();
312 pthread_rwlock_destroy(pthread_rwlock_t* lock) argument
314 if ((lock->flags & RWLOCK_FLAG_SHARED) != 0)
315 return ((SharedRWLock*)lock)
322 pthread_rwlock_rdlock(pthread_rwlock_t* lock) argument
332 pthread_rwlock_tryrdlock(pthread_rwlock_t* lock) argument
345 pthread_rwlock_clockrdlock(pthread_rwlock_t* lock, clockid_t clock_id, const struct timespec *abstime) argument
375 pthread_rwlock_timedrdlock(pthread_rwlock_t* lock, const struct timespec *abstime) argument
383 pthread_rwlock_wrlock(pthread_rwlock_t* lock) argument
393 pthread_rwlock_trywrlock(pthread_rwlock_t* lock) argument
406 pthread_rwlock_clockwrlock(pthread_rwlock_t* lock, clockid_t clock_id, const struct timespec *abstime) argument
436 pthread_rwlock_timedwrlock(pthread_rwlock_t* lock, const struct timespec *abstime) argument
444 pthread_rwlock_unlock(pthread_rwlock_t* lock) argument
[all...]
/haiku/src/add-ons/kernel/bus_managers/ps2/
H A Dpacket_buffer.cpp28 B_INITIALIZE_SPINLOCK(&buffer->lock);
46 acquire_spinlock(&buffer->lock);
50 release_spinlock(&buffer->lock);
59 acquire_spinlock(&buffer->lock);
63 release_spinlock(&buffer->lock);
74 acquire_spinlock(&buffer->lock);
78 release_spinlock(&buffer->lock);
89 acquire_spinlock(&buffer->lock);
93 release_spinlock(&buffer->lock);
102 acquire_spinlock(&buffer->lock);
[all...]
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DCookie.cpp51 LockInfo::operator==(const struct flock& lock) const
53 bool eof = lock.l_len + lock.l_start == OFF_MAX;
54 uint64 start = static_cast<uint64>(lock.l_start);
55 uint64 length = static_cast<uint64>(lock.l_len);
63 LockInfo::operator==(const LockInfo& lock) const
65 return fOwner == lock.fOwner && fStart == lock.fStart
66 && fLength == lock.fLength && fType == lock
164 AddLock(LockInfo* lock) argument
174 RemoveLock(LockInfo* lock, LockInfo* previous) argument
[all...]
H A DOpenState.h12 #include <lock.h>
44 void AddLock(LockInfo* lock);
45 void RemoveLock(LockInfo* lock, LockInfo* prev);
46 void DeleteLock(LockInfo* lock);
/haiku/src/add-ons/kernel/drivers/graphics/vesa/
H A Ddriver.h12 #include <lock.h>
/haiku/src/kits/tracker/
H A DLockingList.h58 BLocker lock; member in class:BPrivate::LockingList
74 return lock.Lock();
82 lock.Unlock();
90 return lock.IsLocked();
/haiku/src/add-ons/kernel/drivers/audio/ice1712/
H A Dutil.h17 cpu_status lock(void);
/haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/
H A DLockerHelper.h7 \brief Helper class for automatically releasing a lock.
9 The LockerHelper acquires a lock on construction and releases it on destruction.
11 releasing the lock at every possible point. It is done automatically.
29 LockerHelper(BLocker& lock) : fLock(&lock) argument
/haiku/src/servers/app/
H A DMultiLocker.h60 // does the current thread hold a write lock?
64 // in DEBUG mode returns whether the lock is held
108 AutoWriteLocker(MultiLocker* lock) argument
110 fLock(*lock)
115 AutoWriteLocker(MultiLocker& lock) argument
117 fLock(lock)
149 AutoReadLocker(MultiLocker* lock) argument
151 fLock(*lock)
156 AutoReadLocker(MultiLocker& lock) argument
158 fLock(lock)
[all...]
/haiku/src/add-ons/kernel/file_systems/websearchfs/
H A Dvnidpool.h11 lock lock; member in struct:vnidpool
/haiku/src/libs/compat/openbsd_network/compat/sys/
H A Drwlock.h13 struct rw_lock lock; member in struct:rwlock_openbsd
21 rw_lock_init(&rwl->lock, name);
43 status = rw_lock_write_lock(&rwl->lock);
45 status = rw_lock_read_lock(&rwl->lock);
63 rw_lock_write_unlock(&rwl->lock);
70 if (rwl->lock.holder != find_thread(NULL))
/haiku/headers/os/drivers/
H A DKernelExport.h23 int32 lock; member in struct:__anon1
32 (spinlock)->lock = 0; \
40 int32 lock; member in struct:__anon2
45 (spinlock)->lock = 0; \
49 #define B_SPINLOCK_IS_LOCKED(spinlock) (atomic_get(&(spinlock)->lock) > 0)
52 int32 lock; member in struct:__anon3
57 (rw_spinlock)->lock = 0; \
61 spinlock lock; member in struct:__anon4
67 B_INITIALIZE_SPINLOCK(&(seqlock)->lock); \
155 extern void acquire_spinlock(spinlock *lock);
[all...]
/haiku/src/kits/support/
H A DJobQueue.cpp86 BAutolock lock(&fLock);
87 if (!lock.IsLocked())
113 BAutolock lock(&fLock);
114 if (lock.IsLocked()) {
132 BAutolock lock(&fLock);
133 if (lock.IsLocked())
141 BAutolock lock(&fLock);
142 if (lock.IsLocked())
161 BAutolock lock(&fLock);
162 if (lock
[all...]
/haiku/src/servers/launch/
H A DVolumeWatcher.cpp56 BAutolock lock(sLocker);
64 BAutolock lock(sLocker);
72 BAutolock lock(sLocker);
87 BAutolock lock(sLocker);
95 BAutolock lock(sLocker);
110 BAutolock lock(sLocker);
121 BAutolock lock(sLocker);
/haiku/src/add-ons/kernel/drivers/graphics/radeon/
H A Dvip.c12 the lock with it)
28 // CP lock must be hold
80 device_info *di, uint channel, uint address, uint32 *data, bool lock )
84 if( lock )
85 ACQUIRE_BEN( di->si->cp.lock );
89 if( lock )
90 RELEASE_BEN( di->si->cp.lock );
92 // SHOW_FLOW( 2, "address=%x, data=%lx, lock=%d", address, *data, lock );
171 bool Radeon_VIPFifoRead(device_info *di, uint8 channel, uint32 address, uint32 count, uint8 *buffer, bool lock) argument
273 Radeon_VIPFifoWrite(device_info *di, uint8 channel, uint32 address, uint32 count, uint8 *buffer, bool lock) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/ntfs/
H A Dntfs.h13 #include <lock.h>
31 mutex_destroy(&lock);
35 mutex lock; member in struct:volume
/haiku/headers/tools/cppunit/cppunit/
H A DSynchronizedObject.h16 * to implement an actual lock.
18 * Each instance of this class holds a pointer on a lock object.
33 virtual void lock() {} function in class:CppUnit::SynchronizedObject::SynchronizationObject
55 m_syncObject->lock();
/haiku/src/add-ons/kernel/network/stack/
H A Ddomains.h12 #include <lock.h>
24 recursive_lock lock; member in struct:net_domain_private
/haiku/src/system/kernel/arch/mips/
H A Darch_pmap.cpp26 int pmap_map_page(addr paddr, addr vaddr, int lock) argument
29 dprintf("pmap_map_page: entry paddr 0x%x vaddr 0x%x lock 0x%x\n", paddr, vaddr, lock);
/haiku/src/add-ons/kernel/bus_managers/acpi/acpica/include/platform/
H A Dachaiku.h200 extern int AcpiOsAcquireGlobalLock(volatile uint32_t *lock);
201 extern int AcpiOsReleaseGlobalLock(volatile uint32_t *lock);

Completed in 173 milliseconds

1234567891011>>