Home
last modified time | relevance | path

Searched refs:holder (Results 1 – 25 of 32) sorted by relevance

12

/haiku/src/tools/fs_shell/
H A Dlock.cpp22 if (lock->holder == fssh_find_thread(NULL)) in fssh_recursive_lock_get_recursion()
41 lock->holder = -1; in fssh_recursive_lock_init_etc()
72 if (thread != lock->holder) { in fssh_recursive_lock_lock()
77 lock->holder = thread; in fssh_recursive_lock_lock()
89 if (thread != lock->holder) { in fssh_recursive_lock_trylock()
95 lock->holder = thread; in fssh_recursive_lock_trylock()
105 if (fssh_find_thread(NULL) != lock->holder) in fssh_recursive_lock_unlock()
109 lock->holder = -1; in fssh_recursive_lock_unlock()
122 lock->holder = thread; in fssh_recursive_lock_transfer_lock()
138 m->holder = -1; in fssh_mutex_init()
[all …]
/haiku/src/system/kernel/locks/
H A Dlock.cpp76 lock->holder = -1; in recursive_lock_init_etc()
107 lock->holder = thread; in recursive_lock_lock()
134 lock->holder = thread; in recursive_lock_trylock()
151 lock->holder = -1; in recursive_lock_unlock()
172 from->holder = -1; in recursive_lock_switch_lock()
187 from->holder = thread; in recursive_lock_switch_lock()
193 to->holder = thread; in recursive_lock_switch_lock()
223 to->holder = thread; in recursive_lock_switch_from_mutex()
248 to->holder = thread; in recursive_lock_switch_from_read_lock()
279 kprintf(" holder: %" B_PRId32 "\n", lock->lock.holder); in dump_recursive_lock_info()
[all …]
/haiku/src/system/libroot/os/locks/
H A Drecursive_lock.cpp23 if (lock->holder == find_thread(NULL)) in __recursive_lock_get_recursion()
40 lock->holder = -1; in __recursive_lock_init_etc()
61 if (thread != lock->holder) { in __recursive_lock_lock()
63 lock->holder = thread; in __recursive_lock_lock()
74 if (find_thread(NULL) != lock->holder) { in __recursive_lock_unlock()
80 lock->holder = -1; in __recursive_lock_unlock()
H A Drw_lock.cpp56 if (lock->holder >= 0) in rw_lock_unblock()
68 lock->holder = waiter->thread; in rw_lock_unblock()
93 lock->holder = -1; in __rw_lock_init_etc()
126 if (lock->holder == find_thread(NULL)) { in __rw_lock_read_lock()
140 if (lock->holder == find_thread(NULL)) { in __rw_lock_read_unlock()
146 lock->holder = -1; in __rw_lock_read_unlock()
170 lock->holder = find_thread(NULL); in __rw_lock_write_lock()
175 if (lock->holder == find_thread(NULL)) { in __rw_lock_write_lock()
186 if (lock->holder != find_thread(NULL)) { in __rw_lock_write_lock()
201 if (lock->holder != find_thread(NULL)) { in __rw_lock_write_unlock()
[all …]
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dlock.cpp163 lock->holder = thread; in recursive_lock_lock()
183 lock->holder = thread; in recursive_lock_trylock()
200 lock->holder = -1; in recursive_lock_unlock()
245 if (waiter == NULL || lock->holder > 0) in rw_lock_unblock()
258 lock->holder = get_thread_id(waiter->thread); in rw_lock_unblock()
293 lock->holder = -1; in rw_lock_init()
307 lock->holder = -1; in rw_lock_init_etc()
327 != lock->holder) { in rw_lock_destroy()
362 if (lock->holder == find_thread(NULL)) { in _rw_lock_read_lock()
392 if (lock->holder == find_thread(NULL)) { in _rw_lock_read_lock_with_timeout()
[all …]
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DQuery.cpp86 static const char* EntryGetNameNoCopy(NodeHolder& holder, Inode* inode) in EntryGetNameNoCopy()
89 status_t status = holder.nodeGetter.SetTo(inode); in EntryGetNameNoCopy()
93 holder.smallDataLocker.SetTo(inode->SmallDataLock(), false); in EntryGetNameNoCopy()
94 uint8* buffer = (uint8*)inode->Name(holder.nodeGetter.Node()); in EntryGetNameNoCopy()
96 holder.smallDataLocker.Unlock(); in EntryGetNameNoCopy()
194 NodeHolder& holder, Inode** _entry) in IndexIteratorGetEntry()
196 holder.vnode.SetTo(context->fVolume, iterator->offset); in IndexIteratorGetEntry()
198 status_t status = holder.vnode.Get(&inode); in IndexIteratorGetEntry()
236 static status_t NodeGetAttribute(NodeHolder& holder, Inode* inode, in NodeGetAttribute()
239 status_t status = holder.nodeGetter.SetTo(inode); in NodeGetAttribute()
[all …]
/haiku/headers/private/kernel/
H A Dlock.h26 thread_id holder; member
39 thread_id holder; member
53 thread_id holder; member
76 { ASSERT(find_thread(NULL) == (r)->lock.holder); }
77 # define ASSERT_LOCKED_MUTEX(m) { ASSERT(find_thread(NULL) == (m)->holder); }
79 { ASSERT(find_thread(NULL) == (l)->holder); }
115 # define RECURSIVE_LOCK_HOLDER(recursiveLock) ((recursiveLock)->lock.holder)
117 # define RECURSIVE_LOCK_HOLDER(recursiveLock) ((recursiveLock)->holder)
287 lock->holder = thread; in recursive_lock_transfer_lock()
/haiku/headers/private/fs_shell/
H A Dfssh_lock.h20 fssh_thread_id holder; member
28 fssh_thread_id holder; member
35 fssh_thread_id holder; member
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Dmutex.h111 return mutex->u.recursive.lock.holder == find_thread(NULL); in mtx_owned()
113 return mutex->u.recursive.holder == find_thread(NULL); in mtx_owned()
/haiku/data/system/data/licenses/
H A DBSD (2-clause)1 Copyright <year> <copyright holder>. All rights reserved.
25 or implied, of <copyright holder>.
H A DBSD (3-clause)1 Copyright (c) <year>, <copyright holder>
H A DBSD (4-clause)1 Copyright (c) <year>, <copyright holder>
H A DGNU GPL v3416 license from a particular copyright holder is reinstated (a)
417 provisionally, unless and until the copyright holder explicitly and
419 holder fails to notify you of the violation by some reasonable means
422 Moreover, your license from a particular copyright holder is
423 reinstated permanently if the copyright holder notifies you of the
426 copyright holder, and you cure the violation prior to 30 days after
473 A "contributor" is a copyright holder who authorizes use under this
586 author or copyright holder as a result of your choosing to follow a
H A DLibJPEG53 sole proprietor of its copyright holder, Aladdin Enterprises of Menlo Park, CA.
H A DGNU LGPL v2.162 restrictive license from a patent holder. Therefore, we insist that
119 program which contains a notice placed by the copyright holder or
407 original copyright holder who places the Library under this License may add
/haiku/headers/private/shared/
H A Dlocks.h41 thread_id holder; member
71 thread_id holder; member
/haiku/src/tests/add-ons/kernel/file_systems/shared/queries/
H A DQueryParserTest.cpp86 static const char* EntryGetNameNoCopy(NodeHolder& holder, Entry* entry) in EntryGetNameNoCopy()
142 NodeHolder& holder, Entry** _entry) in IndexIteratorGetEntry()
/haiku/src/libs/compat/openbsd_network/compat/sys/
H A Drwlock.h70 if (rwl->lock.holder != find_thread(NULL)) in rw_assert_wrlock()
/haiku/src/add-ons/kernel/file_systems/packagefs/indices/
H A DQuery.cpp79 static const char* EntryGetNameNoCopy(NodeHolder& holder, Entry* entry) in EntryGetNameNoCopy()
154 NodeHolder& holder, Entry** _entry) in IndexIteratorGetEntry()
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DQuery.cpp160 static const char* EntryGetNameNoCopy(NodeHolder& holder, Entry* entry) in EntryGetNameNoCopy()
222 NodeHolder& holder, Entry** _entry) in IndexIteratorGetEntry()
/haiku/src/add-ons/kernel/file_systems/packagefs/volume/
H A DVolume.h240 return find_thread(NULL) == fLock.holder; in IsWriteLocked()
/haiku/src/servers/app/
H A DMultiLocker.cpp121 writeLockHolder = (find_thread(NULL) == fLock.holder); in IsWriteLocked()
/haiku/docs/develop/apps/haikudepot/
H A Dserver.rst26 A *ProcessNode* is a holder for a Process, but also takes responsibility
/haiku/src/add-ons/kernel/drivers/audio/echo/generic/
H A Dlicense.txt62 restrictive license from a patent holder. Therefore, we insist that
119 program which contains a notice placed by the copyright holder or
407 original copyright holder who places the Library under this License may add
/haiku/src/add-ons/kernel/busses/scsi/usb/datafab/
H A DCOPYING63 a notice placed by the copyright holder saying it may be distributed
231 original copyright holder who places the Program under this License

12