/third_party/protobuf/src/google/protobuf/ |
D | arenastring_unittest.cc | 71 std::string* mut = field2.Mutable(&default_value, NULL); in TEST() local 72 EXPECT_EQ(mut, field2.Mutable(&default_value, NULL)); in TEST() 73 EXPECT_EQ(mut, &field2.Get()); in TEST() 74 EXPECT_NE(&default_value, mut); in TEST() 75 EXPECT_EQ(std::string("default"), *mut); in TEST() 76 *mut = "Test long long long long value"; // ensure string allocates storage in TEST() 97 std::string* mut = field2.Mutable(&default_value, &arena); in TEST() local 98 EXPECT_EQ(mut, field2.Mutable(&default_value, &arena)); in TEST() 99 EXPECT_EQ(mut, &field2.Get()); in TEST() 100 EXPECT_NE(&default_value, mut); in TEST() [all …]
|
/third_party/python/Python/ |
D | ceval_gil.h | 54 #define MUTEX_INIT(mut) \ argument 55 if (PyMUTEX_INIT(&(mut))) { \ 56 Py_FatalError("PyMUTEX_INIT(" #mut ") failed"); }; 57 #define MUTEX_FINI(mut) \ argument 58 if (PyMUTEX_FINI(&(mut))) { \ 59 Py_FatalError("PyMUTEX_FINI(" #mut ") failed"); }; 60 #define MUTEX_LOCK(mut) \ argument 61 if (PyMUTEX_LOCK(&(mut))) { \ 62 Py_FatalError("PyMUTEX_LOCK(" #mut ") failed"); }; 63 #define MUTEX_UNLOCK(mut) \ argument [all …]
|
D | condvar.h | 56 #define PyMUTEX_INIT(mut) pthread_mutex_init((mut), NULL) argument 57 #define PyMUTEX_FINI(mut) pthread_mutex_destroy(mut) argument 58 #define PyMUTEX_LOCK(mut) pthread_mutex_lock(mut) argument 59 #define PyMUTEX_UNLOCK(mut) pthread_mutex_unlock(mut) argument 65 #define PyCOND_WAIT(cond, mut) pthread_cond_wait((cond), (mut)) argument 69 PyCOND_TIMEDWAIT(PyCOND_T *cond, PyMUTEX_T *mut, long long us) in PyCOND_TIMEDWAIT() argument 73 int ret = pthread_cond_timedwait(cond, mut, &abs); in PyCOND_TIMEDWAIT()
|
D | thread_pthread.h | 205 pthread_mutex_t mut; member 587 status = pthread_mutex_init(&lock->mut, NULL); in PyThread_allocate_lock() 594 _Py_ANNOTATE_PURE_HAPPENS_BEFORE_MUTEX(&lock->mut); in PyThread_allocate_lock() 624 status = pthread_mutex_destroy( &thelock->mut ); in PyThread_free_lock() 642 status = pthread_mutex_trylock( &thelock->mut ); in PyThread_acquire_lock_timed() 647 status = pthread_mutex_lock( &thelock->mut ); in PyThread_acquire_lock_timed() 667 &thelock->mut, &abs); in PyThread_acquire_lock_timed() 678 &thelock->mut); in PyThread_acquire_lock_timed() 695 status = pthread_mutex_unlock( &thelock->mut ); in PyThread_acquire_lock_timed() 714 status = pthread_mutex_lock( &thelock->mut ); in PyThread_release_lock() [all …]
|
/third_party/rust/crates/cxx/tests/ui/ |
D | pin_mut_opaque.stderr | 1 error: mutable reference to C++ type requires a pin -- use Pin<&mut Opaque> 4 5 | fn f(arg: &mut Opaque); 7 error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxString> 10 8 | fn s(s: &mut CxxString); 13 error: mutable reference to C++ type requires a pin -- use Pin<&mut CxxVector<...>> 16 9 | fn v(v: &mut CxxVector<u8>); 25 error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>` 28 6 | fn g(&mut self); 31 error: mutable reference to opaque C++ type requires a pin -- use `self: Pin<&mut Opaque>` 34 7 | fn h(self: &mut Opaque);
|
D | mut_return.stderr | 1 error: &mut return type is not allowed unless there is a &mut argument 4 10 | fn f(t: &Thing) -> Pin<&mut CxxString>; 7 error: &mut return type is not allowed unless there is a &mut argument 10 14 | fn j(t: &Thing) -> &mut [u8];
|
D | ptr_no_const_mut.stderr | 1 error: expected `mut` or `const` keyword in raw pointer type 7 help: add `mut` or `const` here 11 6 | fn get_neither_const_nor_mut() -> *mut C; 14 error: expected `const` or `mut`
|
D | slice_unsupported.stderr | 1 error: unsupported &mut [T] element type: opaque C++ type is not supported yet 4 6 | fn f(_: &mut [Opaque]); 7 error: needs a cxx::ExternType impl in order to be used as a slice element in &mut [Opaque]
|
D | ptr_unsupported.stderr | 4 6 | fn get_ptr_to_reference() -> *mut &C; 10 7 | fn get_uniqueptr_to_ptr() -> UniquePtr<*mut C>; 16 8 | fn get_vector_of_ptr() -> UniquePtr<CxxVector<*mut C>>;
|
D | unique_ptr_as_mut.stderr | 4 22 | let _: &mut ffi::Opaque = &mut opaque;
|
D | unnamed_receiver.stderr | 1 … allowed if the surrounding extern block contains exactly one extern type; use `self: &mut TheType` 4 6 | fn f(&mut self);
|
/third_party/rust/crates/cxx/book/src/binding/ |
D | rawptr.md | 1 {{#title *mut T, *const T — Rust ♡ C++}} 2 # *mut T, *const T 4 Generally you should use references (`&mut T`, `&T`) or [std::unique_ptr\<T\>] 59 unsafe fn parseArgs(argc: i32, argv: *mut *mut c_char); 71 let mut bytes = nul_error.into_vec(); 78 // Convert from Vec<CString> of owned strings to Vec<*mut c_char> of 85 // from *mut [Box<CStr>] to *mut [*mut CStr] to *mut *mut c_char. 87 let mut argv: Vec<*mut c_char> = Vec::with_capacity(argc + 1); 89 argv.push(arg.as_ptr() as *mut c_char);
|
D | slice.md | 5 - Rust `&mut [T]` is written `rust::Slice<T>` in C++ 90 accidentally exposing overlapping &mut \[T\] to Rust is UB. 114 fn prettify_json(input: &[u8], output: Pin<&mut CxxString>) -> Result<()>; 118 struct WriteToCxxString<'a>(Pin<&'a mut CxxString>); 121 fn write(&mut self, buf: &[u8]) -> io::Result<usize> { 125 fn flush(&mut self) -> io::Result<()> { 130 fn prettify_json(input: &[u8], output: Pin<&mut CxxString>) -> serde_json::Result<()> { 132 let mut deserializer = serde_json::Deserializer::from_slice(input); 133 let mut serializer = serde_json::Serializer::pretty(writer); 134 serde_transcode::transcode(&mut deserializer, &mut serializer)
|
/third_party/rust/crates/bindgen/book/src/ |
D | tutorial-5.md | 29 let mut compressed_output: Vec<u8> = vec![0; input.len()]; 30 let mut decompressed_output: Vec<u8> = vec![0; input.len()]; 33 let mut stream: bz_stream = mem::zeroed(); 34 let result = BZ2_bzCompressInit(&mut stream as *mut _, 47 stream.next_in = input.as_ptr() as *mut _; 49 stream.next_out = compressed_output.as_mut_ptr() as *mut _; 51 let result = BZ2_bzCompress(&mut stream as *mut _, BZ_FINISH as _); 62 let result = BZ2_bzCompressEnd(&mut stream as *mut _); 70 let mut stream: bz_stream = mem::zeroed(); 71 let result = BZ2_bzDecompressInit(&mut stream as *mut _, [all …]
|
/third_party/musl/libc-test/src/regression/ |
D | pthread_cond-smasher.c | 66 static mutex mut[phases]; variable 89 mutex_lock(&mut[i]); in client() 101 int ret = condition_timedwait(&cond_client, &mut[i], &ts); in client() 108 int ret = mutex_unlock(&mut[i]); in client() 124 mutex_init(&mut[i]); in main() 126 mutex_lock(&mut[0]); in main() 137 int ret = condition_timedwait(&cond_main, &mut[phase], &ts); in main() 148 mutex_lock(&mut[phase+1]); in main() 156 ret = mutex_unlock(&mut[phase-1]); in main() 177 mutex_destroy(&mut[i]); in main()
|
/third_party/qrcodegen/rust-no-heap/ |
D | Readme.markdown | 47 let mut outbuffer = vec![0u8; Version::MAX.buffer_len()]; 48 let mut tempbuffer = vec![0u8; Version::MAX.buffer_len()]; 50 &mut tempbuffer, &mut outbuffer, QrCodeEcc::Medium, 55 let mut outbuffer = vec![0u8; Version::MAX.buffer_len()]; 56 let mut dataandtemp = vec![0u8; Version::MAX.buffer_len()]; 60 let qr = QrCode::encode_binary(&mut dataandtemp, 3, 61 &mut outbuffer, QrCodeEcc::High,
|
/third_party/ntfs-3g/libfuse-lite/ |
D | fuse_misc.h | 13 #define fuse_mutex_init(mut) pthread_mutex_init(mut, NULL) argument 15 static inline void fuse_mutex_init(pthread_mutex_t *mut) in fuse_mutex_init() argument 20 pthread_mutex_init(mut, &attr); in fuse_mutex_init()
|
/third_party/node/deps/v8/third_party/wasm-api/example/ |
D | global.wat | 4 (global $mut_f32_import (import "" "var f32") (mut f32)) 5 (global $mut_i64_import (import "" "var i64") (mut i64)) 9 (global $mut_f32_export (export "var f32") (mut f32) (f32.const 7)) 10 (global $mut_i64_export (export "var i64") (mut i64) (i64.const 8))
|
/third_party/rust/crates/cxx/book/src/ |
D | extern-rust.md | 40 way. Rust code created the `MultiBuf`, passed a `&mut MultiBuf` to C++, and C++ 41 later passed a `&mut MultiBuf` back across the bridge to Rust. 45 a similar way but with Box as the indirection rather than &mut. 125 `&mut self`, or a pinned reference `self: Pin<&mut Self>`. A by-value `self` is 129 type is implicitly the receiver for a `&self` or `&mut self` method. If the 141 fn foo(self: &mut Second);
|
D | tutorial.md | 262 fn next_chunk(buf: &mut MultiBuf) -> &[u8]; 271 fn put(&self, parts: &mut MultiBuf) -> u64; 298 # fn next_chunk(buf: &mut MultiBuf) -> &[u8]; 307 # fn put(&self, parts: &mut MultiBuf) -> u64; 320 pub fn next_chunk(buf: &mut MultiBuf) -> &[u8] { 395 # fn next_chunk(buf: &mut MultiBuf) -> &[u8]; 404 # fn put(&self, parts: &mut MultiBuf) -> u64; 412 # pub fn next_chunk(buf: &mut MultiBuf) -> &[u8] { 423 let mut buf = MultiBuf { chunks, pos: 0 }; 424 let blobid = client.put(&mut buf); [all …]
|
D | SUMMARY.md | 28 - [&[T], &mut [T] — rust::Slice\<T\>](binding/slice.md) 35 - [*mut T, *const T raw pointers](binding/rawptr.md)
|
/third_party/python/Lib/test/ |
D | test_thread.py | 111 mut = thread.allocate_lock() 112 mut.acquire() 117 mut.acquire() 118 mut.release() 126 mut.release()
|
/third_party/rust/crates/termcolor/ |
D | README.md | 58 let mut stdout = StandardStream::stdout(ColorChoice::Always); 60 writeln!(&mut stdout, "green text!") 77 let mut bufwtr = BufferWriter::stderr(ColorChoice::Always); 78 let mut buffer = bufwtr.buffer(); 80 writeln!(&mut buffer, "green text!")?;
|
/third_party/rust/crates/syn/examples/trace-var/ |
D | README.md | 11 fn factorial(mut n: u64) -> u64 { 12 let mut p = 1;
|
/third_party/rust/crates/quote/tests/ui/ |
D | not-repeatable.stderr | 23 `&mut Ipv4Addr: Iterator` 24 which is required by `&mut Ipv4Addr: ext::RepIteratorExt`
|