Home
last modified time | relevance | path

Searched refs:Weak (Results 1 – 25 of 272) sorted by relevance

1234567891011

/external/crosvm/cros_async/src/
Dwaker.rs6 use std::sync::Weak;
15 fn wake_by_ref(weak_self: &Weak<Self>); in wake_by_ref()
17 fn wake(weak_self: Weak<Self>) { in wake()
34 let weak = ManuallyDrop::new(Weak::<W>::from_raw(data as *const W)); in clone_weak_raw()
44 let weak: Weak<W> = Weak::from_raw(data as *const W); in wake_weak_raw()
52 let weak = ManuallyDrop::new(Weak::<W>::from_raw(data as *const W)); in wake_by_ref_weak_raw()
58 drop(Weak::from_raw(data as *const W)) in drop_weak_raw()
61 pub(crate) fn new_waker<W: WeakWake>(w: Weak<W>) -> Waker { in new_waker()
/external/llvm-project/llvm/test/tools/llvm-objcopy/ELF/
Dweaken.test2 # RUN: llvm-objcopy --weaken-symbol Global -W Local -W Weak %t %t2
8 # RUN: echo "Weak" >> %t-list.txt
13 # RUN: echo "Weak # weak" >> %t-list2.txt
42 - Name: Weak
72 #CHECK-NEXT: Binding: Weak
78 #CHECK-NEXT: Name: Weak
81 #CHECK-NEXT: Binding: Weak
Dglobalize.test4 # RUN: --globalize-symbol Weak \
11 # RUN: echo "Weak" >> %t-list.txt
45 - Name: Weak
83 #CHECK-NEXT: Name: Weak
95 #CHECK-NEXT: Binding: Weak
Dweaken-all.test41 - Name: Weak
71 #CHECK-NEXT: Binding: Weak
86 #CHECK-NEXT: Name: Weak
89 #CHECK-NEXT: Binding: Weak
Dlocalize.test6 # RUN: -L Weak \
15 # RUN: echo "Weak" >> %t-list.txt
21 # RUN: echo "Weak" >> %t-list2.txt
65 - Name: Weak
101 #CHECK-NEXT: Name: Weak
/external/llvm/include/llvm/ExecutionEngine/
DJITSymbolFlags.h25 Weak = 1U << 0, enumerator
59 return (Flags & JITSymbolFlags::Weak) == JITSymbolFlags::Weak; in isWeak()
69 Flags |= JITSymbolFlags::Weak; in flagsFromGlobalValue()
79 Flags |= JITSymbolFlags::Weak; in flagsFromObjectSymbol()
/external/llvm-project/llvm/unittests/InterfaceStub/
DELFYAMLTest.cpp83 EXPECT_FALSE(SymBar.Weak); in TEST()
91 EXPECT_FALSE(SymBaz.Weak); in TEST()
99 EXPECT_FALSE(SymFoo.Weak); in TEST()
108 EXPECT_FALSE(SymNor.Weak); in TEST()
116 EXPECT_TRUE(SymNot.Weak); in TEST()
178 SymFoo.Weak = false; in TEST()
185 SymBar.Weak = true; in TEST()
191 SymNor.Weak = false; in TEST()
197 SymNot.Weak = false; in TEST()
/external/llvm-project/clang/test/CodeGenObjCXX/
Darc-special-member-functions.mm18 // The Weak object that is passed is destructed in this constructor.
24 // Check that the Weak object passed to this constructor is not destructed after
31 struct Weak {
32 Weak(id);
37 ContainsWeak(Weak);
38 Weak w;
41 ContainsWeak::ContainsWeak(Weak a) : w(a) {}
43 // The Weak object that is passed is destructed in this constructor.
49 // Check that the Weak object passed to this constructor is not destructed after
57 Base(Weak);
[all …]
Darc-forwarded-lambda-call.mm13 // Check that the delegating block invoke function doesn't destruct the Weak
36 struct Weak { struct
41 extern void testWeak_helper(void (^)(Weak)); argument
42 testWeak_helper([](Weak){});
/external/llvm-project/clang/test/CodeGenObjC/
Dobjc-non-trivial-struct-nrvo.m22 } Weak; typedef
87 Weak testWeak(void) {
88 Weak a;
100 Weak testWeak2(int c) {
101 Weak a, b;
125 - (Weak)foo1;
129 - (Weak)foo1 {
130 Weak a;
Dweak-in-c-struct.m13 } Weak; typedef
15 Weak getWeak(void);
16 void calleeWeak(Weak);
46 Weak t;
72 void test_copy_constructor_Weak(Weak *s) {
73 Weak t = *s;
100 void test_copy_assignment_Weak(Weak *d, Weak *s) {
127 __block Weak t;
156 void test_move_assignment_Weak(Weak *p) {
164 void test_parameter_Weak(Weak a) {
[all …]
Dnontrivial-c-struct-exception.m14 } Weak; typedef
57 Weak genWeak(void);
58 void calleeWeak(Weak, Weak);
/external/llvm-project/llvm/test/tools/llvm-elfabi/
Dbinary-read-syms-gnu-hash.test14 # CHECK-NEXT: _ITM_deregisterTMCloneTable: { Type: NoType, Undefined: true, Weak: true }
15 # CHECK-NEXT: _ITM_registerTMCloneTable: { Type: NoType, Undefined: true, Weak: true }
17 # CHECK-NEXT: __cxa_finalize: { Type: Func, Undefined: true, Weak: true }
18 # CHECK-NEXT: __gmon_start__: { Type: NoType, Undefined: true, Weak: true }
Dbinary-read-syms-sysv-hash.test14 # CHECK-NEXT: _ITM_deregisterTMCloneTable: { Type: NoType, Undefined: true, Weak: true }
15 # CHECK-NEXT: _ITM_registerTMCloneTable: { Type: NoType, Undefined: true, Weak: true }
17 # CHECK-NEXT: __cxa_finalize: { Type: Func, Undefined: true, Weak: true }
18 # CHECK-NEXT: __gmon_start__: { Type: NoType, Undefined: true, Weak: true }
/external/rust/crates/getrandom/src/
Dmacos.rs12 util_libc::{last_os_error, Weak},
20 static GETENTROPY: Weak = unsafe { Weak::new("getentropy\0") }; in getrandom_inner()
Dsolaris_illumos.rs22 util_libc::{sys_fill_exact, Weak},
33 static GETRANDOM: Weak = unsafe { Weak::new("getrandom\0") }; in getrandom_inner()
Dbsd_arandom.rs36 use crate::util_libc::Weak; in getrandom_inner()
37 static GETRANDOM: Weak = unsafe { Weak::new("getrandom\0") }; in getrandom_inner()
/external/rust/crates/weak-table/src/
Dtraits.rs75 impl<T: ?Sized> WeakElement for rc::Weak<T> { implementation
91 impl<T: ?Sized + Eq + Hash> WeakKey for rc::Weak<T> { implementation
101 impl<T: ?Sized> WeakElement for sync::Weak<T> { implementation
117 impl<T: ?Sized + Eq + Hash> WeakKey for sync::Weak<T> implementation
/external/rust/crates/weak-table/
DREADME.md19 use std::sync::{Arc, Weak};
21 let mut table = <WeakKeyHashMap<Weak<str>, u32>>::new();
47 use std::rc::{Rc, Weak};
68 pub struct SymbolTable(WeakHashSet<Weak<str>>);
/external/llvm-project/llvm/test/tools/llvm-ifs/
Dconflict-weak.ifs5 # CHECK-IFS-NEXT: - { Name: a, Type: Func, Weak: true }
12 - { Name: a, Type: Func, Weak: true }
Dweak.ifs8 # CHECK-IFS-DAG: - { Name: _Z8weakFuncv, Type: Func, Weak: true }
17 - { Name: _Z8weakFuncv, Type: Func, Weak: true }
/external/rust/crates/serde/src/
Dlib.rs197 pub use alloc::rc::{Rc, Weak as RcWeak};
199 pub use std::rc::{Rc, Weak as RcWeak};
202 pub use alloc::sync::{Arc, Weak as ArcWeak};
204 pub use std::sync::{Arc, Weak as ArcWeak};
/external/llvm-project/llvm/tools/llvm-ifs/
Dllvm-ifs.cpp85 bool Weak; member
119 IO.mapOptional("Weak", Symbol.Weak, false); in mapping()
248 if (Symbol.Weak) in writeTbdStub()
323 << "\n Binding: STB_" << (Symbol.Weak ? "WEAK" : "GLOBAL") in writeElfStub()
480 if (Symbol.Weak != SI->second.Weak) { in main()
481 Symbol.Weak = false; in main()
/external/rust/crates/weak-table/tests/
Dsymbols.rs5 use std::rc::{Rc, Weak};
26 pub struct SymbolTable(WeakHashSet<Weak<str>>);
/external/crosvm/devices/src/utils/
Devent_loop.rs12 use std::sync::{Arc, Weak};
45 handlers: Arc<Mutex<BTreeMap<RawDescriptor, Weak<dyn EventHandler>>>>,
64 let fd_callbacks: Arc<Mutex<BTreeMap<RawDescriptor, Weak<dyn EventHandler>>>> = in start()
154 handler: Weak<dyn EventHandler>, in add_event()

1234567891011