Home
last modified time | relevance | path

Searched refs:ThreadId (Results 1 – 25 of 59) sorted by relevance

123

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/modernize-pass-by-value/
Dheader.h1 class ThreadId {
3 ThreadId(const ThreadId &) {} in ThreadId() function
4 ThreadId(ThreadId &&) {} in ThreadId() argument
8 A(const ThreadId &tid) : threadid(tid) {} in A()
9 ThreadId threadid;
/external/llvm-project/openmp/libomptarget/deviceRTLs/common/src/
Dreduction.cu176 INLINE static bool isMaster(kmp_Ident *loc, uint32_t ThreadId) { in isMaster() argument
177 return checkGenericMode(loc) || IsTeamMaster(ThreadId); in isMaster()
199 uint32_t ThreadId = GetLogicalThreadIdInBlock(checkSPMDMode(loc)); in __kmpc_nvptx_teams_reduce_nowait_v2() local
215 bool IsMaster = isMaster(loc, ThreadId); in __kmpc_nvptx_teams_reduce_nowait_v2()
268 if (ThreadId >= NumRecs) in __kmpc_nvptx_teams_reduce_nowait_v2()
271 if (ThreadId >= NumThreads) in __kmpc_nvptx_teams_reduce_nowait_v2()
275 glcpyFct(global_buffer, ThreadId, reduce_data); in __kmpc_nvptx_teams_reduce_nowait_v2()
276 for (uint32_t i = NumThreads + ThreadId; i < NumRecs; i += NumThreads) in __kmpc_nvptx_teams_reduce_nowait_v2()
292 uint32_t WarpId = ThreadId / WARPSIZE; in __kmpc_nvptx_teams_reduce_nowait_v2()
295 ThreadId); in __kmpc_nvptx_teams_reduce_nowait_v2()
Dparallel.cu153 (int)newTaskDescr->ThreadId(), (int)nThreads); in __kmpc_kernel_parallel()
230 newTaskDescr->ThreadId() = 0; in __kmpc_serialized_parallel()
/external/rust/crates/gdbstub/src/protocol/common/
Dthread_id.rs19 pub struct ThreadId { struct
26 impl TryFrom<&[u8]> for ThreadId { argument
40 Ok(ThreadId { in try_from()
49 Ok(ThreadId { pid: None, tid }) in try_from()
67 impl TryFrom<&mut [u8]> for ThreadId { implementation
/external/llvm-project/compiler-rt/lib/xray/tests/unit/
Dprofile_collector_test.cpp63 u64 ThreadId = 0; in ValidateBlock() local
66 internal_memcpy(&ThreadId, LocalBuffer + (2 * sizeof(u32)), sizeof(u64)); in ValidateBlock()
69 ASSERT_NE(ThreadId, 0u); in ValidateBlock()
77 u64 ThreadId = 0; in ParseBlockHeader() local
80 internal_memcpy(&ThreadId, LocalBuffer + (2 * sizeof(u32)), sizeof(u64)); in ParseBlockHeader()
81 return std::make_tuple(BlockSize, BlockNumber, ThreadId); in ParseBlockHeader()
151 u64 ThreadId; in TEST() local
152 std::tie(BlockSize, BlockNum, ThreadId) = ParseBlockHeader(B); in TEST()
/external/llvm-project/compiler-rt/lib/gwp_asan/tests/
Denable_disable.cpp63 pthread_t ThreadId; in TEST_F() local
64 EXPECT_EQ(pthread_create(&ThreadId, nullptr, &enableMalloc, &GPA), 0); in TEST_F()
84 EXPECT_EQ(pthread_join(ThreadId, 0), 0); in TEST_F()
/external/gwp_asan/gwp_asan/tests/
Denable_disable.cpp63 pthread_t ThreadId; in TEST_F() local
64 EXPECT_EQ(pthread_create(&ThreadId, nullptr, &enableMalloc, &GPA), 0); in TEST_F()
84 EXPECT_EQ(pthread_join(ThreadId, 0), 0); in TEST_F()
/external/llvm-project/lldb/unittests/tools/lldb-server/tests/
DMessageObjects.h109 StopReplyStop(uint8_t Signal, lldb::tid_t ThreadId, llvm::StringRef Name, in StopReplyStop() argument
112 : Signal(Signal), ThreadId(ThreadId), Name(Name), in StopReplyStop()
121 lldb::tid_t getThreadId() const { return ThreadId; } in getThreadId()
138 lldb::tid_t ThreadId; variable
/external/llvm-project/compiler-rt/lib/safestack/
Dsafestack_platform.h66 using ThreadId = uint64_t; variable
68 inline ThreadId GetTid() { in GetTid()
81 inline int TgKill(pid_t pid, ThreadId tid, int sig) { in TgKill()
Dsafestack.cpp149 ThreadId tid;
172 ThreadId tid = GetTid(); in thread_cleanup_handler()
/external/rust/crates/async-task/src/
Drunnable.rs96 use std::thread::{self, ThreadId}; in spawn_local()
99 fn thread_id() -> ThreadId { in spawn_local()
101 static ID: ThreadId = thread::current().id(); in spawn_local()
108 id: ThreadId, in spawn_local()
/external/rust/crates/gdbstub/src/protocol/commands/
D_h_upcase.rs12 pub thread: ThreadId,
27 let thread: ThreadId = body[1..].try_into().ok()?; in from_packet()
D_t_upcase.rs5 pub thread: ThreadId,
/external/rust/crates/syn/src/
Dthread.rs2 use std::thread::{self, ThreadId};
9 thread_id: ThreadId,
/external/rust/crates/grpcio/src/
Dcq.rs8 use std::thread::{self, ThreadId};
144 id: ThreadId,
219 pub fn worker_id(&self) -> ThreadId { in worker_id() argument
/external/rust/crates/crossbeam-channel/src/
Dcontext.rs6 use std::thread::{self, Thread, ThreadId};
32 thread_id: ThreadId,
188 pub fn thread_id(&self) -> ThreadId { in thread_id() argument
Dwaker.rs4 use std::thread::{self, ThreadId};
278 fn current_thread_id() -> ThreadId { in current_thread_id()
281 static THREAD_ID: ThreadId = thread::current().id(); in current_thread_id()
/external/llvm-project/llvm/tools/llvm-xray/
Dxray-stacks.cpp332 StackTrieNode *createTrieNode(uint32_t ThreadId, int32_t FuncId, in createTrieNode() argument
338 Roots[ThreadId].push_back(Node); in createTrieNode()
342 StackTrieNode *findRootNode(uint32_t ThreadId, int32_t FuncId) { in findRootNode() argument
343 const auto &RootsByThread = Roots[ThreadId]; in findRootNode()
565 RootVector RootValues, uint32_t ThreadId, bool ReportThread) { in printAll() argument
572 printSingleStack<AggType>(OS, FN, ReportThread, ThreadId, Top); in printAll()
586 bool ReportThread, uint32_t ThreadId, in printSingleStack() argument
589 OS << "thread_" << ThreadId << ";"; in printSingleStack()
/external/llvm-project/llvm/unittests/ObjectYAML/
DMinidumpYAMLTest.cpp171 EXPECT_EQ(0x7u, Stream.ThreadId); in TEST()
214 EXPECT_EQ(0x7u, Stream.ThreadId); in TEST()
270 EXPECT_EQ(0x8u, Stream.ThreadId); in TEST()
321 EXPECT_EQ(0x7u, Stream.ThreadId); in TEST()
/external/ms-tpm-20-ref/TPMCmd/Simulator/src/
DTcpServer.c302 int ThreadId; in PlatformSignalService() local
308 (LPVOID)(INT_PTR)port, 0, (LPDWORD)&ThreadId); in PlatformSignalService()
440 int ThreadId; in ActTimeService() local
449 (LPVOID)(INT_PTR)NULL, 0, (LPDWORD)&ThreadId); in ActTimeService()
/external/rust/crates/gdbstub/src/protocol/
Dresponse_writer.rs7 use crate::protocol::{IdKind, ThreadId};
139 pub fn write_thread_id(&mut self, tid: ThreadId) -> Result<(), Error<C::Error>> { in write_thread_id()
Dmod.rs8 pub(crate) use common::{IdKind, ThreadId};
/external/llvm-project/llvm/lib/Frontend/OpenMP/
DOMPIRBuilder.cpp848 Value *ThreadId = getOrCreateThreadID(Ident); in createMaster() local
849 Value *Args[] = {Ident, ThreadId}; in createMaster()
1138 Value *ThreadId = getOrCreateThreadID(Ident); in createCopyPrivate() local
1142 Value *Args[] = {Ident, ThreadId, BufSize, CpyBuf, CpyFn, DidItLD}; in createCopyPrivate()
1166 Value *ThreadId = getOrCreateThreadID(Ident); in createSingle() local
1167 Value *Args[] = {Ident, ThreadId}; in createSingle()
1195 Value *ThreadId = getOrCreateThreadID(Ident); in createCritical() local
1197 Value *Args[] = {Ident, ThreadId, LockVar}; in createCritical()
1407 Value *ThreadId = getOrCreateThreadID(Ident); in createOMPAlloc() local
1408 Value *Args[] = {ThreadId, Size, Allocator}; in createOMPAlloc()
[all …]
/external/tensorflow/tensorflow/core/profiler/internal/cpu/
Dtraceme_recorder.cc254 uint32 ThreadId() const { return info_.tid; } in ThreadId() function in tensorflow::profiler::TraceMeRecorder::ThreadLocalRecorder
286 TraceMeRecorder::Get()->RegisterThread(recorder_->ThreadId(), recorder_); in ThreadLocalRecorderWrapper()
295 TraceMeRecorder::Get()->UnregisterThread(recorder_->ThreadId()); in ~ThreadLocalRecorderWrapper()
/external/rust/crates/crossbeam-utils/src/sync/
Dsharded_lock.rs10 use std::thread::{self, ThreadId};
577 mapping: HashMap<ThreadId, usize>,
599 thread_id: ThreadId,

123