Debian Codegraph @

android/app/jni/extern/macports-legacy-support/src/pthread_setname_np.c

raw
1 /*
2 Until such time as this behavior can be emulated, do nothing and return success.
3 * This is what the MacPorts SpiderMonkey does:
4 https://github.com/macports/macports-ports/commit/50cdf084768436a421e2c6d05e995d122bc93bca
5 * This is what the MacPorts LLVM does:
6 https://github.com/macports/macports-ports/blob/master/lang/llvm-14/files/0007-Threading-Only-call-pthread_setname_np-if-we-have-it.patch
7 * This is what upstream dav1d does:
8 https://code.videolan.org/videolan/dav1d/-/blob/87f9a81cd770e49394a45deca7a3df41243de00b/src/thread.h#L182
9 vs
10 https://code.videolan.org/videolan/dav1d/-/blob/87f9a81cd770e49394a45deca7a3df41243de00b/src/thread.h#L182
11 * This is what upstream Rust does:
12 https://github.com/rust-lang/rust/blob/100f12d17026fccfc5d80527b5976dd66b228b13/library/std/src/sys/unix/thread.rs#L137
13 vs
14 https://github.com/rust-lang/rust/blob/100f12d17026fccfc5d80527b5976dd66b228b13/library/std/src/sys/unix/thread.rs#L199
15 */
16
17 /* MP support header */
18 #include "MacportsLegacySupport.h"
19 #if __MP_LEGACY_SUPPORT_PTHREAD_SETNAME_NP__
20
21 int pthread_setname_np(const char *name) {
22 return 0;
23 }
24
25 #endif /* __MP_LEGACY_SUPPORT_PTHREAD_SETNAME_NP__ */