Home
last modified time | relevance | path

Searched refs:shared (Results 1 – 19 of 19) sorted by relevance

/bionic/libc/private/
Dbionic_futex.h57 static inline int __futex_wake_ex(volatile void* ftx, bool shared, int count) { in __futex_wake_ex() argument
58 return __futex(ftx, shared ? FUTEX_WAKE : FUTEX_WAKE_PRIVATE, count, nullptr, 0); in __futex_wake_ex()
65 static inline int __futex_wait_ex(volatile void* ftx, bool shared, int value) { in __futex_wait_ex() argument
66 return __futex(ftx, (shared ? FUTEX_WAIT_BITSET : FUTEX_WAIT_BITSET_PRIVATE), value, nullptr, in __futex_wait_ex()
70 __LIBC_HIDDEN__ int __futex_wait_ex(volatile void* ftx, bool shared, int value,
73 static inline int __futex_pi_unlock(volatile void* ftx, bool shared) { in __futex_pi_unlock() argument
74 return __futex(ftx, shared ? FUTEX_UNLOCK_PI : FUTEX_UNLOCK_PI_PRIVATE, 0, nullptr, 0); in __futex_pi_unlock()
77 __LIBC_HIDDEN__ int __futex_pi_lock_ex(volatile void* ftx, bool shared, bool use_realtime_clock,
Dbionic_lock.h73 bool shared = process_shared; /* cache to local variable */ in unlock() local
81 __futex_wake_ex(&state, shared, 1); in unlock()
/bionic/libc/bionic/
Dsemaphore.cpp145 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; in __sem_dec() local
156 SEMCOUNT_DECREMENT(old_value) | shared)); in __sem_dec()
165 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; in __sem_trydec() local
176 SEMCOUNT_DECREMENT(old_value) | shared)); in __sem_trydec()
189 unsigned int shared = old_value & SEMCOUNT_SHARED_MASK; in __sem_inc() local
204 new_value = SEMCOUNT_ONE | shared; in __sem_inc()
206 new_value = SEMCOUNT_INCREMENT(old_value) | shared; in __sem_inc()
216 unsigned int shared = SEM_GET_SHARED(sem_count_ptr); in sem_wait() local
223 … int result = __futex_wait_ex(sem_count_ptr, shared, shared | SEMCOUNT_MINUS_ONE, false, nullptr); in sem_wait()
250 unsigned int shared = SEM_GET_SHARED(sem_count_ptr); in __sem_timedwait() local
[all …]
Dpthread_mutex.cpp140 bool shared; member
186 ret = -__futex_pi_lock_ex(&mutex.owner_tid, mutex.shared, use_realtime_clock, abs_timeout); in PIMutexTimedLock()
225 return -__futex_pi_unlock(&mutex.owner_tid, mutex.shared); in PIMutexUnlock()
544 pi_mutex.shared = (*attr & MUTEXATTR_SHARED_MASK) != 0; in pthread_mutex_init()
556 uint16_t shared) { in NormalMutexTryLock() argument
557 const uint16_t unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; in NormalMutexTryLock()
558 const uint16_t locked_uncontended = shared | MUTEX_STATE_BITS_LOCKED_UNCONTENDED; in NormalMutexTryLock()
581 uint16_t shared, in NormalMutexLock() argument
584 if (__predict_true(NormalMutexTryLock(mutex, shared) == 0)) { in NormalMutexLock()
594 const uint16_t unlocked = shared | MUTEX_STATE_BITS_UNLOCKED; in NormalMutexLock()
[all …]
Dbionic_futex.cpp61 int __futex_wait_ex(volatile void* ftx, bool shared, int value, bool use_realtime_clock, in __futex_wait_ex() argument
63 return FutexWithTimeout(ftx, (shared ? FUTEX_WAIT_BITSET : FUTEX_WAIT_BITSET_PRIVATE), value, in __futex_wait_ex()
67 int __futex_pi_lock_ex(volatile void* ftx, bool shared, bool use_realtime_clock, in __futex_pi_lock_ex() argument
69 return FutexWithTimeout(ftx, (shared ? FUTEX_LOCK_PI : FUTEX_LOCK_PI_PRIVATE), 0, in __futex_pi_lock_ex()
/bionic/tests/
DAndroid.bp88 // Prebuilt shared libraries for use in tests.
478 shared: {
494 shared: {
524 shared: {
636 shared: {
651 shared: {
683 shared: {
698 shared: {
719 shared: {
744 shared: {
[all …]
Dthread_local_test.cpp55 TEST(thread_local_storage, shared) { in TEST() argument
/bionic/benchmarks/linker_relocation/
DAndroid.bp40 // "link:shared" variant (as opposed to "link:static"), whereas the cc_benchmark has no
41 // "link:(shared/static)" variation. It appears that Soong needs to be fixed to make this benchmark
DREADME.md4 of shared objects with many symbols and relocations. It mimics the work involved
/bionic/linker/
DAndroid.bp266 // -shared is used to overwrite the -Bstatic and -static flags triggered by enabling
267 // static_executable. This dynamic linker is actually a shared object linked with static
270 "-shared",
288 // Leave the symbols in the shared library so that stack unwinders can produce
Dld.config.format.md68 # For every link define list of shared libraries. This is list of the libraries accessible from
/bionic/tests/libs/
DAndroid.bp333 // 2. Check that public libraries loaded in different namespaces are shared
336 // 4. Check that having access to shared library (libnstest_public.so)
388 // Build test helper libraries for linker namespaces for allow all shared libs
391 // shared libs.
1266 // Library for inaccessible shared library test
1378 // Tool to use to align the shared libraries in a zip file.
/bionic/docs/
Delf-tls.md21 At run-time, TLS variables are allocated on a module-by-module basis, where a module is a shared
25 few instructions. TLS variables belonging to dlopen'ed shared objects, on the other hand, may be
74 For example, if we have this C code in a shared object:
158 If the variable is part of the Static TLS Block (i.e. the executable or an initially-loaded shared
166 // in a shared object the executable links against.
201 * Code compiled with `-fpic` could be in a shared object, so use GD/LD.
225 As long as a shared object is one of the initially-loaded modules, a better option is to use
237 For example, if we have this C code in a shared object:
376 library is typically a shared object, but for Android, we link our own `libthread_db.a` into
468 ELF TLS isn't implemented on older Android platforms, so dynamic executables and shared objects
[all …]
/bionic/
Dandroid-changes-for-ndk-developers.md72 group. The global group is shared by all libraries and contains the main
136 ## Opening shared libraries directly from an APK
241 Starting with API 23, shared objects must not contain text
269 Note: it is technically possible to have a shared object with the TEXTREL
329 Each ELF shared object (“native library”) must have a SONAME (Shared
DREADME.md23 `cos(3)` in a separate library to save space in the days before shared
67 # Each architecture has its own subdirectory for stuff that isn't shared
/bionic/libc/
DAndroid.bp1548 // libc_common_shared.a For shared libraries.
1661 shared: {
1706 shared: {
1725 // Leave the symbols in the shared library so that stack unwinders can produce
1739 shared: {
1744 // Leave the symbols in the shared library so that stack unwinders can produce
1753 // Leave the symbols in the shared library so that stack unwinders can produce
1991 shared: {
2523 shared: {
/bionic/libdl/
DAndroid.bp103 shared: {
/bionic/libm/
DAndroid.bp308 shared: {
/bionic/libc/malloc_debug/
DREADME.md692 symbols in your app's shared libraries rather than stripping them. That