Home
last modified time | relevance | path

Searched refs:thread (Results 351 - 375 of 2415) sorted by relevance

1...<<11121314151617181920>>...97

/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_thrd_test.cpp2 #include <thread>
24 * @tc.desc: Determine if the thread function creation was successful, and use thrd_join The join function saves the
25 * thread return value to a variable, and finally determines that the variable is equal to the expected value.
39 * @tc.desc: It determines that the thread function was successfully created, and it determines that the thrd_join
40 * The join function successfully saved the return value of the thread function to a null pointer
52 * @tc.desc: Determine whether the thread creation function call was successful, and determine thrd_ The detach function
58 thrd_t thread; in HWTEST_F() local
60 EXPECT_EQ(thrd_success, thrd_create(&thread, ExitArg, reinterpret_cast<void*>(1))); in HWTEST_F()
61 EXPECT_EQ(thrd_success, thrd_detach(thread)); in HWTEST_F()
66 * @tc.desc: In multithreading, determine if the current identifiers of the child thread an
[all...]
/third_party/skia/third_party/externals/dawn/src/tests/unittests/
H A DPerThreadProcTests.cpp23 #include <thread>
38 // Test that procs can be set per thread. This test overrides deviceCreateBuffer with a dummy proc
39 // for each thread that increments a counter. Because each thread has their own proc and counter,
40 // there should be no data races. The per-thread procs also check that the current thread id is
41 // exactly equal to the expected thread id.
46 // either thread calls the procs. in TEST_F()
52 static std::atomic<std::thread::id> threadIdA; in TEST_F()
53 static std::atomic<std::thread in TEST_F()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/base/internal/
H A Dstrerror_test.cc22 #include <thread> // NOLINT(build/c++11)
51 // strerror is known to be thread-hostile, collect all the expected in TEST()
77 std::vector<std::thread> threads; in TEST()
79 threads.push_back(std::thread(thread_fun)); in TEST()
81 for (auto& thread : threads) { in TEST()
82 thread.join(); in TEST()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
H A Duprobes.c56 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol()
57 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol()
79 * sets thread.trap_nr != UINT_MAX.
81 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr,
87 if (t->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped()
104 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol()
106 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol()
152 * the thread has a fatal signal, so reset the instruction pointer to its
159 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol()
/kernel/linux/linux-6.6/arch/loongarch/kernel/
H A Duprobes.c42 utask->autask.saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol()
43 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol()
54 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol()
55 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol()
71 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol()
78 if (t->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped()
/kernel/linux/linux-6.6/arch/csky/kernel/probes/
H A Duprobes.c52 utask->autask.saved_trap_no = current->thread.trap_no; in arch_uprobe_pre_xol()
53 current->thread.trap_no = UPROBE_TRAP_NR; in arch_uprobe_pre_xol()
66 WARN_ON_ONCE(current->thread.trap_no != UPROBE_TRAP_NR); in arch_uprobe_post_xol()
67 current->thread.trap_no = utask->autask.saved_trap_no; in arch_uprobe_post_xol()
78 if (t->thread.trap_no != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped()
105 current->thread.trap_no = utask->autask.saved_trap_no; in arch_uprobe_abort_xol()
/kernel/linux/linux-6.6/arch/powerpc/kernel/
H A Duprobes.c68 autask->saved_trap_nr = current->thread.trap_nr; in arch_uprobe_pre_xol()
69 current->thread.trap_nr = UPROBE_TRAP_NR; in arch_uprobe_pre_xol()
91 * sets thread.trap_nr != UINT_MAX.
93 * arch_uprobe_pre_xol/arch_uprobe_post_xol save/restore thread.trap_nr,
99 if (t->thread.trap_nr != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped()
116 WARN_ON_ONCE(current->thread.trap_nr != UPROBE_TRAP_NR); in arch_uprobe_post_xol()
118 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_post_xol()
165 * the thread has a fatal signal, so reset the instruction pointer to its
172 current->thread.trap_nr = utask->autask.saved_trap_nr; in arch_uprobe_abort_xol()
/kernel/linux/linux-6.6/arch/riscv/kernel/probes/
H A Duprobes.c63 utask->autask.saved_cause = current->thread.bad_cause; in arch_uprobe_pre_xol()
64 current->thread.bad_cause = UPROBE_TRAP_NR; in arch_uprobe_pre_xol()
75 WARN_ON_ONCE(current->thread.bad_cause != UPROBE_TRAP_NR); in arch_uprobe_post_xol()
76 current->thread.bad_cause = utask->autask.saved_cause; in arch_uprobe_post_xol()
85 if (t->thread.bad_cause != UPROBE_TRAP_NR) in arch_uprobe_xol_was_trapped()
112 current->thread.bad_cause = utask->autask.saved_cause; in arch_uprobe_abort_xol()
/kernel/linux/linux-6.6/tools/perf/tests/
H A Dsymbols.c9 #include "thread.h"
17 struct thread *thread; member
28 /* Create a dummy thread */ in init_test_info()
29 ti->thread = machine__findnew_thread(ti->machine, 100, 100); in init_test_info()
30 if (!ti->thread) { in init_test_info()
40 thread__put(ti->thread); in exit_test_info()
56 PROT_EXEC, 0, NULL, filename, ti->thread); in create_map()
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/
H A Dpthread_mutex_test_004.cpp51 pthread_t thread = pthread_self(); in ThreadFuncTest3() local
53 ret = pthread_detach(thread); in ThreadFuncTest3()
76 pthread_t thread = pthread_self(); in ThreadFuncTest2() local
78 ret = pthread_detach(thread); in ThreadFuncTest2()
102 pthread_t thread = pthread_self(); in ThreadFuncTest1() local
104 ret = pthread_detach(thread); in ThreadFuncTest1()
H A Dpthread_mutex_test_006.cpp51 pthread_t thread = pthread_self(); in ThreadFuncTest3() local
53 ret = pthread_detach(thread); in ThreadFuncTest3()
76 pthread_t thread = pthread_self(); in ThreadFuncTest2() local
78 ret = pthread_detach(thread); in ThreadFuncTest2()
101 pthread_t thread = pthread_self(); in ThreadFuncTest1() local
103 ret = pthread_detach(thread); in ThreadFuncTest1()
H A Dpthread_mutex_test_008.cpp43 pthread_t thread = pthread_self(); in ThreadFuncTest3() local
47 ret = pthread_detach(thread); in ThreadFuncTest3()
69 pthread_t thread = pthread_self(); in ThreadFuncTest2() local
73 ret = pthread_detach(thread); in ThreadFuncTest2()
96 pthread_t thread = pthread_self(); in ThreadFuncTest1() local
100 ret = pthread_detach(thread); in ThreadFuncTest1()
/third_party/glfw/tests/
H A Dthreads.c65 const Thread* thread = data; in thread_main() local
67 glfwMakeContextCurrent(thread->window); in thread_main()
73 glClearColor(thread->r * v, thread->g * v, thread->b * v, 0.f); in thread_main()
76 glfwSwapBuffers(thread->window); in thread_main()
125 fprintf(stderr, "Failed to create secondary thread\n"); in main()
/third_party/googletest/googletest/src/hwext/
H A Dgtest-multithread.cpp47 test.thread = new std::thread(doThreadTestTask, &test); in doTest()
50 if (t.thread){ in doTest()
51 t.thread->join(); in doTest()
52 delete t.thread; in doTest()
53 t.thread = nullptr; in doTest()
/third_party/ltp/testcases/realtime/func/pi-tests/
H A Dtestpi-2.c23 * This testcase verifies if the low priority SCHED_RR thread can preempt
24 * the high priority SCHED_RR thread multiple times via priority
34 * 2010-04-22 Code cleanup and thread synchronization changes by using
85 struct thread *pthr = (struct thread *)arg; in func_lowrt()
96 /* Wait for the high priority noise thread to start and signal us */ in func_lowrt()
115 struct thread *pthr = (struct thread *)arg; in func_rt()
143 struct thread *pthr = (struct thread *)ar in func_noise()
[all...]
H A Dtestpi-4.c23 * This testcase verifies that the SCHED_OTHER thread can preempt
24 * the SCHED_RR thread via priority inheritance.
84 struct thread *pthr = (struct thread *)arg; in func_nonrt()
96 /* Wait for the high priority noise thread to start and signal us */ in func_nonrt()
115 struct thread *pthr = (struct thread *)arg; in func_rt()
143 struct thread *pthr = (struct thread *)arg; in func_noise()
152 /* Noise thread begin in func_noise()
[all...]
H A Dtestpi-1.c23 * This testcase verifies if the low priority SCHED_OTHER thread can preempt
24 * the high priority SCHED_RR thread via priority inheritance.
33 * 2010-04-22 Code cleanup and thread synchronization changes by using
83 struct thread *pthr = (struct thread *)arg; in func_nonrt()
94 /* Wait for the high priority noise thread to start and signal us */ in func_nonrt()
113 struct thread *pthr = (struct thread *)arg; in func_rt()
141 struct thread *pthr = (struct thread *)ar in func_noise()
[all...]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
H A Dconditionvariable_test.cpp28 std::thread thread([&] { in TEST_F()
62 thread.join(); in TEST_F()
71 std::thread thread([&] { in TEST_P()
105 thread.join(); in TEST_P()
/kernel/linux/linux-6.6/arch/powerpc/kvm/
H A Dbook3s_hv_p9_entry.c18 current->thread.vrsave != vcpu->arch.vrsave) in load_spr_state()
23 if (current->thread.ebbhr != vcpu->arch.ebbhr) in load_spr_state()
25 if (current->thread.ebbrr != vcpu->arch.ebbrr) in load_spr_state()
27 if (current->thread.bescr != vcpu->arch.bescr) in load_spr_state()
32 current->thread.tidr != vcpu->arch.tid) in load_spr_state()
40 if (current->thread.fscr != vcpu->arch.fscr) in load_spr_state()
42 if (current->thread.dscr != vcpu->arch.dscr) in load_spr_state()
160 * current->thread.xxx registers must all be restored to host in restore_p9_host_os_sprs()
162 * switch itself will overwrite current->thread.xxx with the values in restore_p9_host_os_sprs()
169 current->thread in restore_p9_host_os_sprs()
[all...]
/kernel/linux/linux-6.6/tools/perf/
H A Dbuiltin-script.c16 #include "util/thread.h"
31 #include "util/thread-stack.h"
775 struct thread *thread, in perf_sample__fprintf_start()
793 const char *comm = thread ? thread__comm_str(thread) : ":-1"; in perf_sample__fprintf_start()
917 struct thread *thread, in perf_sample__fprintf_brstack()
938 thread__find_map_fb(thread, sample->cpumode, from, &alf); in perf_sample__fprintf_brstack()
939 thread__find_map_fb(thread, sampl in perf_sample__fprintf_brstack()
773 perf_sample__fprintf_start(struct perf_script *script, struct perf_sample *sample, struct thread *thread, struct evsel *evsel, u32 type, FILE *fp) perf_sample__fprintf_start() argument
916 perf_sample__fprintf_brstack(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, FILE *fp) perf_sample__fprintf_brstack() argument
955 perf_sample__fprintf_brstacksym(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, FILE *fp) perf_sample__fprintf_brstacksym() argument
993 perf_sample__fprintf_brstackoff(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, FILE *fp) perf_sample__fprintf_brstackoff() argument
1036 grab_bb(u8 *buffer, u64 start, u64 end, struct machine *machine, struct thread *thread, bool *is64bit, u8 *cpumode, bool last) grab_bb() argument
1144 print_srccode(struct thread *thread, u8 cpumode, uint64_t addr) print_srccode() argument
1188 ip__fprintf_sym(uint64_t addr, struct thread *thread, u8 cpumode, int cpu, struct symbol **lastsym, struct perf_event_attr *attr, FILE *fp) ip__fprintf_sym() argument
1228 perf_sample__fprintf_brstackinsn(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, struct machine *machine, FILE *fp) perf_sample__fprintf_brstackinsn() argument
1380 perf_sample__fprintf_addr(struct perf_sample *sample, struct thread *thread, struct perf_event_attr *attr, FILE *fp) perf_sample__fprintf_addr() argument
1408 resolve_branch_sym(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, u64 *ip) resolve_branch_sym() argument
1438 perf_sample__fprintf_callindent(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, FILE *fp) perf_sample__fprintf_callindent() argument
1495 script_fetch_insn(struct perf_sample *sample, struct thread *thread, struct machine *machine) script_fetch_insn() argument
1502 perf_sample__fprintf_insn(struct perf_sample *sample, struct perf_event_attr *attr, struct thread *thread, struct machine *machine, FILE *fp) perf_sample__fprintf_insn() argument
1540 perf_sample__fprintf_bts(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al, struct machine *machine, FILE *fp) perf_sample__fprintf_bts() argument
2022 struct thread *thread; global() member
2056 perf_sample__fprint_metric(struct perf_script *script, struct thread *thread, struct evsel *evsel, struct perf_sample *sample, FILE *fp) perf_sample__fprint_metric() argument
2095 show_event(struct perf_sample *sample, struct evsel *evsel, struct thread *thread, struct addr_location *al, struct addr_location *addr_al) show_event() argument
2143 struct thread *thread = al->thread; process_event() local
2279 int idx, thread; __process_stat() local
2510 struct thread *thread = NULL; print_event_with_time() local
[all...]
/kernel/linux/linux-5.10/arch/nds32/kernel/
H A Dprocess.c157 memset(&p->thread.cpu_context, 0, sizeof(struct cpu_context)); in copy_thread()
161 /* kernel thread fn */ in copy_thread()
162 p->thread.cpu_context.r6 = stack_start; in copy_thread()
163 /* kernel thread argument */ in copy_thread()
164 p->thread.cpu_context.r7 = stk_sz; in copy_thread()
176 p->thread.cpu_context.pc = (unsigned long)ret_from_fork; in copy_thread()
177 p->thread.cpu_context.sp = (unsigned long)childregs; in copy_thread()
189 p->thread.fpu = current->thread.fpu; in copy_thread()
228 memcpy(fpu, &tsk->thread in dump_fpu()
[all...]
/kernel/linux/linux-5.10/arch/x86/entry/vsyscall/
H A Dvsyscall_64.c107 struct thread_struct *thread = &current->thread; in write_ok_or_segv() local
109 thread->error_code = X86_PF_USER | X86_PF_WRITE; in write_ok_or_segv()
110 thread->cr2 = ptr; in write_ok_or_segv()
111 thread->trap_nr = X86_TRAP_PF; in write_ok_or_segv()
239 prev_sig_on_uaccess_err = current->thread.sig_on_uaccess_err; in emulate_vsyscall()
240 current->thread.sig_on_uaccess_err = 1; in emulate_vsyscall()
264 current->thread.sig_on_uaccess_err = prev_sig_on_uaccess_err; in emulate_vsyscall()
/kernel/linux/linux-6.6/arch/parisc/include/asm/
H A Dprocessor.h27 #define TASK_SIZE_OF(tsk) ((tsk)->thread.task_size)
29 #define TASK_UNMAPPED_BASE (current->thread.map_base)
112 #define task_pt_regs(tsk) ((struct pt_regs *)&((tsk)->thread.regs))
124 (task)->thread.flags = (((task)->thread.flags & ~PARISC_UAC_MASK) \
132 put_user(((task)->thread.flags & PARISC_UAC_MASK) \
153 * Start user thread in another space.
274 #define KSTK_EIP(tsk) ((tsk)->thread.regs.iaoq[0])
275 #define KSTK_ESP(tsk) ((tsk)->thread.regs.gr[30])
/kernel/linux/linux-6.6/arch/x86/entry/vsyscall/
H A Dvsyscall_64.c107 struct thread_struct *thread = &current->thread; in write_ok_or_segv() local
109 thread->error_code = X86_PF_USER | X86_PF_WRITE; in write_ok_or_segv()
110 thread->cr2 = ptr; in write_ok_or_segv()
111 thread->trap_nr = X86_TRAP_PF; in write_ok_or_segv()
240 prev_sig_on_uaccess_err = current->thread.sig_on_uaccess_err; in emulate_vsyscall()
241 current->thread.sig_on_uaccess_err = 1; in emulate_vsyscall()
265 current->thread.sig_on_uaccess_err = prev_sig_on_uaccess_err; in emulate_vsyscall()
/third_party/skia/third_party/externals/angle2/src/tests/gl_tests/
H A DVulkanMultithreadingTest.cpp15 #include <thread>
74 std::vector<std::thread> threads(threadCount); in runMultithreadedGLTest()
77 threads[threadIdx] = std::thread([&, threadIdx]() { in runMultithreadedGLTest()
114 for (std::thread &thread : threads) in runMultithreadedGLTest()
116 thread.join(); in runMultithreadedGLTest()
139 auto testBody = [](EGLSurface surface, size_t thread) { in TEST_P()
175 // Base the clear color on the thread and iteration indexes so every clear color is in TEST_P()
177 const GLColor color(static_cast<GLubyte>(thread % 255), in TEST_P()

Completed in 12 milliseconds

1...<<11121314151617181920>>...97