/third_party/skia/third_party/externals/abseil-cpp/absl/synchronization/ |
H A D | mutex.cc | 39 #include <thread> // NOLINT(build/c++11) 149 // for any thread to make progress gets it without undue delay. in GetMutexGlobals() 464 // The SynchWaitParams struct encapsulates the way in which a thread is waiting: 467 // type of lock). It also points to the PerThreadSynch struct of its thread. 471 // PerThreadSynch because a thread can be waiting on multiple Mutexes if, 477 // the thread is on a Mutex's waiter queue. 487 thread(thread_arg), in SynchWaitParams() 491 const Mutex::MuHow how; // How this thread needs to wait. 492 const Condition *cond; // The condition that this thread is waiting for. 499 PerThreadSynch *const thread; // threa member [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audioutils/test/unittest/ |
H A D | audio_utils_unit_test.cpp | 16 #include <thread> 1314 cout << "thread-" << std::this_thread::get_id() << " run time: " in PutHandleThreadDataTime() 1323 cout << "thread-" << std::this_thread::get_id() << " run time: " in GetHandleThreadDataTime() 1357 static void ThreadsJoin(std::thread (&threads)[THREAD_NUM]) 1376 * @tc.desc: Multiple threads put until blocking runs, one thread gets, all threads finish running normally 1380 std::thread threads[THREAD_NUM]; in HWTEST() 1386 threads[i] = std::thread(PutHandleThreadData, std::ref(demoDatas[i]), i); in HWTEST() 1413 // here means all thread end ok or if some operation blocked and the testcase blocked in HWTEST() 1429 * time-point, everyone puts concurrent to see the status of the queue and the state of the thread. 1434 std::thread thread in HWTEST() [all...] |
/kernel/linux/linux-5.10/arch/ia64/kernel/ |
H A D | ptrace.c | 593 * when a thread is stopped (ptraced), debugger might change thread's user 621 * After PTRACE_ATTACH, a thread's register backing store area in user 622 * space is assumed to contain correct data whenever the thread is 678 * Write f32-f127 back to task->thread.fph if it has been modified. 692 task->thread.flags |= IA64_THREAD_FPH_VALID; in ia64_flush_fph() 693 ia64_save_fpu(&task->thread.fph[0]); in ia64_flush_fph() 700 * through thread.fph. If necessary, f32-f127 are written back to 701 * thread.fph or, if the fph state hasn't been used before, thread [all...] |
/kernel/linux/linux-6.6/arch/ia64/kernel/ |
H A D | ptrace.c | 593 * when a thread is stopped (ptraced), debugger might change thread's user 621 * Write f32-f127 back to task->thread.fph if it has been modified. 635 task->thread.flags |= IA64_THREAD_FPH_VALID; in ia64_flush_fph() 636 ia64_save_fpu(&task->thread.fph[0]); in ia64_flush_fph() 643 * through thread.fph. If necessary, f32-f127 are written back to 644 * thread.fph or, if the fph state hasn't been used before, thread.fph 646 * ensure that the task picks up the state from thread.fph when it 655 if (!(task->thread in ia64_sync_fph() [all...] |
/foundation/multimedia/audio_framework/frameworks/native/audiorenderer/test/example/ |
H A D | interrupt_multi_renderer_test.cpp | 20 #include <thread> 290 unique_ptr<thread> writeThread1 = nullptr; in TestPlayback() 292 writeThread1 = make_unique<thread>(&InterruptMultiRendererTest::WriteBuffer, this, in TestPlayback() 299 unique_ptr<thread> writeThread2 = nullptr; in TestPlayback() 301 writeThread2 = make_unique<thread>(&InterruptMultiRendererTest::WriteBuffer, this, in TestPlayback()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | processor.h | 66 /* Macros for adjusting thread priority (hardware multi-threading) */ 186 unsigned long trap_nr; /* last trap # on this thread */ 305 #define task_pt_regs(tsk) ((tsk)->thread.regs) 309 #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) 310 #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0)
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | processor.h | 177 unsigned long trap_nr; /* last trap # on this thread */ 310 #define task_pt_regs(tsk) ((tsk)->thread.regs) 314 #define KSTK_EIP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->nip: 0) 315 #define KSTK_ESP(tsk) ((tsk)->thread.regs? (tsk)->thread.regs->gpr[1]: 0)
|
/kernel/linux/linux-5.10/tools/perf/trace/beauty/ |
H A D | beauty.h | 38 struct thread; 45 struct file *thread__files_entry(struct thread *thread, int fd); 96 * @thread: tid state (maps, pid, tid, etc) 112 struct thread *thread; member
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/bufq/src/ |
H A D | bufq.c | 83 int thread 210 int thread) in bufq_get_qhandle() 216 if ((thread >= SH_CSS_MAX_SP_THREADS) || (thread < 0) || in bufq_get_qhandle() 219 q = &css_queues.host2sp_buffer_queue_handles[thread][id]; in bufq_get_qhandle() 207 bufq_get_qhandle( enum sh_css_queue_type type, enum sh_css_queue_id id, int thread) bufq_get_qhandle() argument
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/bufq/src/ |
H A D | bufq.c | 83 int thread 210 int thread) in bufq_get_qhandle() 216 if ((thread >= SH_CSS_MAX_SP_THREADS) || (thread < 0) || in bufq_get_qhandle() 219 q = &css_queues.host2sp_buffer_queue_handles[thread][id]; in bufq_get_qhandle() 207 bufq_get_qhandle( enum sh_css_queue_type type, enum sh_css_queue_id id, int thread) bufq_get_qhandle() argument
|
/kernel/linux/linux-6.6/tools/perf/trace/beauty/ |
H A D | beauty.h | 38 struct thread; 45 struct file *thread__files_entry(struct thread *thread, int fd); 97 * @thread: tid state (maps, pid, tid, etc) 113 struct thread *thread; member
|
/third_party/elfutils/tests/ |
H A D | backtrace-data.c | 175 set_initial_registers (Dwfl_Thread *thread, in set_initial_registers() argument 178 pid_t child = dwfl_pid (dwfl_thread_dwfl (thread)); in set_initial_registers() 202 bool ok = dwfl_thread_state_registers (thread, 0, 17, dwarf_regs); in set_initial_registers() 249 thread_callback (Dwfl_Thread *thread, void *thread_arg __attribute__ ((unused))) in thread_callback() argument 252 switch (dwfl_thread_getframes (thread, frame_callback, &frameno)) in thread_callback()
|
/third_party/backends/sanei/ |
H A D | sanei_thread.c | 47 task (thread or process). Depending on the OS and/or the configure settings 201 DBG( 2, "thread started, calling func() now...\n" ); in local_thread() 209 * starts a new thread or process 229 DBG( 2, "_beginthread() created thread %d\n", pid ); in sanei_thread_begin() 254 DBG( 2, "thread started, calling func() now...\n" ); in local_thread() 262 * starts a new thread or process 276 pid = spawn_thread( local_thread, "sane thread (yes they can be)", B_NORMAL_PRIORITY, (void*)&td ); in sanei_thread_begin() 286 DBG( 2, "spawn_thread() created thread %d\n", pid ); in sanei_thread_begin() 350 DBG( 2, "thread started, calling func() now...\n" ); in local_thread() 416 pthread_t thread; in sanei_thread_begin() local [all...] |
/third_party/FreeBSD/sys/dev/usb/ |
H A D | usb_process.c | 58 struct thread *td; in usb_process_thread() 65 td = (struct thread *)(UINTPTR)curthread; in usb_process_thread() 81 * command by another thread must be blocked until either: in usb_process_thread() 225 up->up_ptr = (struct thread *)(UINTPTR)td; in usb_proc_create() 390 if (up->up_curtd == (struct thread *)(UINTPTR)curthread) { in usb_proc_mwait() 405 /* check if config thread is gone */ in usb_proc_mwait() 498 return (up->up_curtd == (struct thread *)(UINTPTR)curthread); in usb_proc_is_called_from()
|
/foundation/graphic/graphic_2d/frameworks/surfaceimage/test/systemtest/ |
H A D | native_image_opengl_system_test.cpp | 238 std::thread producerThread(ProducerThreadOpenGL, nativeWindow); in HWTEST_F() 269 std::thread producerThread(ProducerThreadOpenGL, nativeWindow); in HWTEST_F() 295 std::thread producerThread(ProducerThreadOpenGL, nativeWindow); in HWTEST_F() 321 std::thread producerThread(ProducerThreadOpenGL, nativeWindow); in HWTEST_F() 345 std::thread producerThread(ProducerThreadOpenGL, nativeWindow); in HWTEST_F() 451 std::thread producerThread(ProducerThreadWithMatrix, nativeWindow, i); in HWTEST_F() 483 std::thread producerThread(ProducerThreadWithMatrix, nativeWindow, i); in HWTEST_F()
|
/foundation/multimedia/av_codec/test/unittest/audio_vivid_test/ |
H A D | audio_decoder_avbuffer_vivid_unit_test.cpp | 26 #include <thread> 133 std::unique_ptr<std::thread> inputLoop_; 134 std::unique_ptr<std::thread> outputLoop_; 360 inputLoop_ = make_unique<thread>(&AudioVividDecoderCapacityUnitTest::InputFunc, this); in HWTEST_F() 362 outputLoop_ = make_unique<thread>(&AudioVividDecoderCapacityUnitTest::OutputFunc, this); in HWTEST_F() 402 inputLoop_ = make_unique<thread>(&AudioVividDecoderCapacityUnitTest::InputFunc, this); 404 outputLoop_ = make_unique<thread>(&AudioVividDecoderCapacityUnitTest::OutputFunc, this);
|
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | mte.c | 172 * on the current or next task since the CPU must match where the thread in mte_update_sctlr_user() 176 unsigned long sctlr = task->thread.sctlr_user; in mte_update_sctlr_user() 177 unsigned long mte_ctrl = task->thread.mte_ctrl; in mte_update_sctlr_user() 198 task->thread.sctlr_user = sctlr; in mte_update_sctlr_user() 204 * SYS_GCR_EL1 will be set to current->thread.mte_ctrl value by in mte_update_gcr_excl() 211 ((task->thread.mte_ctrl >> MTE_CTRL_GCR_USER_EXCL_SHIFT) & in mte_update_gcr_excl() 357 task->thread.mte_ctrl = mte_ctrl; in set_mte_ctrl() 362 update_sctlr_el1(task->thread.sctlr_user); in set_mte_ctrl() 372 u64 mte_ctrl = task->thread.mte_ctrl; in get_mte_ctrl()
|
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | evsel.h | 169 void evsel__compute_deltas(struct evsel *evsel, int cpu, int thread, 281 int evsel__read_counter(struct evsel *evsel, int cpu, int thread); 283 int __evsel__read_on_cpu(struct evsel *evsel, int cpu, int thread, bool scale); 286 * evsel__read_on_cpu - Read out the results on a CPU and thread 290 * @thread - thread of interest 292 static inline int evsel__read_on_cpu(struct evsel *evsel, int cpu, int thread) in evsel__read_on_cpu() argument 294 return __evsel__read_on_cpu(evsel, cpu, thread, false); in evsel__read_on_cpu() 298 * evsel__read_on_cpu_scaled - Read out the results on a CPU and thread, scaled 302 * @thread 304 evsel__read_on_cpu_scaled(struct evsel *evsel, int cpu, int thread) evsel__read_on_cpu_scaled() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-dvb.c | 28 pvr2_trace(PVR2_TRACE_DVB_FEED, "dvb feed thread started"); in pvr2_dvb_feed_func() 75 pvr2_trace(PVR2_TRACE_DVB_FEED, "dvb feed thread stopped"); in pvr2_dvb_feed_func() 101 if (adap->thread) { in pvr2_dvb_stream_end() 102 kthread_stop(adap->thread); in pvr2_dvb_stream_end() 103 adap->thread = NULL; in pvr2_dvb_stream_end() 172 adap->thread = kthread_run(pvr2_dvb_feed_thread, adap, "pvrusb2-dvb"); in pvr2_dvb_stream_do_start() 174 if (IS_ERR(adap->thread)) { in pvr2_dvb_stream_do_start() 175 ret = PTR_ERR(adap->thread); in pvr2_dvb_stream_do_start() 176 adap->thread = NULL; in pvr2_dvb_stream_do_start()
|
/kernel/linux/linux-5.10/fs/hfs/ |
H A D | catalog.c | 70 memset(rec->thread.reserved, 0, sizeof(rec->thread.reserved)); in hfs_cat_build_thread() 71 rec->thread.ParID = cpu_to_be32(parentid); in hfs_cat_build_thread() 72 hfs_asc2mac(sb, &rec->thread.CName, name); in hfs_cat_build_thread() 200 pr_err("found bad thread record in catalog\n"); in hfs_cat_find_brec() 204 fd->search_key->cat.ParID = rec.thread.ParID; in hfs_cat_find_brec() 205 len = fd->search_key->cat.CName.len = rec.thread.CName.len; in hfs_cat_find_brec() 210 memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, len); in hfs_cat_find_brec() 219 * The associated thread is also removed unless ('with_thread'==0). 359 /* remove old thread entr in hfs_cat_move() [all...] |
/kernel/linux/linux-6.6/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-dvb.c | 28 pvr2_trace(PVR2_TRACE_DVB_FEED, "dvb feed thread started"); in pvr2_dvb_feed_func() 75 pvr2_trace(PVR2_TRACE_DVB_FEED, "dvb feed thread stopped"); in pvr2_dvb_feed_func() 103 if (adap->thread) { in pvr2_dvb_stream_end() 104 kthread_stop(adap->thread); in pvr2_dvb_stream_end() 105 adap->thread = NULL; in pvr2_dvb_stream_end() 174 adap->thread = kthread_run(pvr2_dvb_feed_thread, adap, "pvrusb2-dvb"); in pvr2_dvb_stream_do_start() 176 if (IS_ERR(adap->thread)) { in pvr2_dvb_stream_do_start() 177 ret = PTR_ERR(adap->thread); in pvr2_dvb_stream_do_start() 178 adap->thread = NULL; in pvr2_dvb_stream_do_start()
|
/kernel/linux/linux-6.6/fs/hfs/ |
H A D | catalog.c | 70 memset(rec->thread.reserved, 0, sizeof(rec->thread.reserved)); in hfs_cat_build_thread() 71 rec->thread.ParID = cpu_to_be32(parentid); in hfs_cat_build_thread() 72 hfs_asc2mac(sb, &rec->thread.CName, name); in hfs_cat_build_thread() 200 pr_err("found bad thread record in catalog\n"); in hfs_cat_find_brec() 204 fd->search_key->cat.ParID = rec.thread.ParID; in hfs_cat_find_brec() 205 len = fd->search_key->cat.CName.len = rec.thread.CName.len; in hfs_cat_find_brec() 210 memcpy(fd->search_key->cat.CName.name, rec.thread.CName.name, len); in hfs_cat_find_brec() 219 * The associated thread is also removed unless ('with_thread'==0). 359 /* remove old thread entr in hfs_cat_move() [all...] |
/kernel/linux/linux-6.6/drivers/char/ipmi/ |
H A D | ipmi_ipmb.c | 57 /* Transmit thread. */ 58 struct task_struct *thread; member 389 if (iidev->thread) { in ipmi_ipmb_stop_thread() 390 struct task_struct *t = iidev->thread; in ipmi_ipmb_stop_thread() 392 iidev->thread = NULL; in ipmi_ipmb_stop_thread() 528 iidev->thread = kthread_run(ipmi_ipmb_thread, iidev, in ipmi_ipmb_probe() 530 if (IS_ERR(iidev->thread)) { in ipmi_ipmb_probe() 531 rv = PTR_ERR(iidev->thread); in ipmi_ipmb_probe() 533 "Could not start kernel thread: error %d\n", rv); in ipmi_ipmb_probe()
|
/kernel/linux/linux-6.6/tools/perf/tests/ |
H A D | hists_cumulate.c | 12 #include "util/thread.h" 20 struct thread *thread; member 114 thread__put(fake_samples[i].thread); in add_hist_entries() 115 fake_samples[i].thread = thread__get(al.thread); in add_hist_entries() 160 thread__zput(fake_samples[i].thread); in put_fake_samples() 166 #define COMM(he) (thread__comm_str(he->thread))
|
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | evsel.h | 212 void evsel__compute_deltas(struct evsel *evsel, int cpu, int thread, 376 int evsel__read_counter(struct evsel *evsel, int cpu_map_idx, int thread); 378 int __evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread, bool scale); 381 * evsel__read_on_cpu - Read out the results on a CPU and thread 385 * @thread - thread of interest 387 static inline int evsel__read_on_cpu(struct evsel *evsel, int cpu_map_idx, int thread) in evsel__read_on_cpu() argument 389 return __evsel__read_on_cpu(evsel, cpu_map_idx, thread, false); in evsel__read_on_cpu() 393 * evsel__read_on_cpu_scaled - Read out the results on a CPU and thread, scaled 397 * @thread 399 evsel__read_on_cpu_scaled(struct evsel *evsel, int cpu_map_idx, int thread) evsel__read_on_cpu_scaled() argument [all...] |