Home
last modified time | relevance | path

Searched refs:thd (Results 1 – 25 of 78) sorted by relevance

1234

/external/libiio/src/iiod/
Dops.c57 static void thd_entry_event_signal(struct ThdEntry *thd) in thd_entry_event_signal() argument
63 ret = write(thd->eventfd, &e, sizeof(e)); in thd_entry_event_signal()
67 static int thd_entry_event_wait(struct ThdEntry *thd, pthread_mutex_t *mutex, in thd_entry_event_wait() argument
76 pfd[0].fd = thd->eventfd; in thd_entry_event_wait()
80 pfd[2].fd = thread_pool_get_poll_fd(thd->pdata->pool); in thd_entry_event_wait()
92 ret = read(thd->eventfd, &e, sizeof(e)); in thd_entry_event_wait()
415 static ssize_t send_data(struct DevEntry *dev, struct ThdEntry *thd, size_t len) in send_data() argument
417 struct parser_pdata *pdata = thd->pdata; in send_data()
418 bool demux = server_demux && dev->sample_size != thd->sample_size; in send_data()
421 len = (len / dev->sample_size) * thd->sample_size; in send_data()
[all …]
Dthread-pool.c85 pthread_t thd; in thread_pool_add_thread() local
108 ret = pthread_create(&thd, &attr, thread_body, pdata); in thread_pool_add_thread()
114 pthread_setname_np(thd, name); in thread_pool_add_thread()
/external/oss-fuzz/projects/mysql-server/targets/
Dfuzz_mysqld.cc56 THD *thd = new (std::nothrow) THD(); in create_thd() local
57 if (thd == NULL) { in create_thd()
61 thd->get_protocol_classic()->init_net(vio_tmp); in create_thd()
62 thd->set_admin_connection(m_is_admin_conn); in create_thd()
63 init_net_server_extension(thd); in create_thd()
64 return thd; in create_thd()
76 THD *thd = channel_info->create_thd(); in try_connection() local
77 if (thd == NULL) { in try_connection()
82 thd->set_new_thread_id(); in try_connection()
92 thd_set_thread_stack(thd, (char *)&thd); in try_connection()
[all …]
Dfuzz_docommand.cc91 THD *thd = new (std::nothrow) THD(); in create_thd() local
92 if (thd == NULL) { in create_thd()
96 thd->get_protocol_classic()->init_net(vio_tmp); in create_thd()
97 thd->set_admin_connection(m_is_admin_conn); in create_thd()
98 init_net_server_extension(thd); in create_thd()
99 return thd; in create_thd()
/external/jemalloc_new/test/src/
Dthd.c5 thd_create(thd_t *thd, void *(*proc)(void *), void *arg) { in thd_create() argument
7 *thd = CreateThread(NULL, 0, routine, arg, 0, NULL); in thd_create()
8 if (*thd == NULL) { in thd_create()
14 thd_join(thd_t thd, void **ret) { in thd_join() argument
15 if (WaitForSingleObject(thd, INFINITE) == WAIT_OBJECT_0 && ret) { in thd_join()
17 GetExitCodeThread(thd, (LPDWORD) &exit_code); in thd_join()
24 thd_create(thd_t *thd, void *(*proc)(void *), void *arg) { in thd_create() argument
25 if (pthread_create(thd, NULL, proc, arg) != 0) { in thd_create()
31 thd_join(thd_t thd, void **ret) { in thd_join() argument
32 pthread_join(thd, ret); in thd_join()
/external/grpc-grpc/test/core/iomgr/
Dwakeup_fd_cv_test.cc137 grpc_core::Thread thd("grpc_background_poll", &background_poll, &pargs); in test_poll_cv_trigger() local
138 thd.Start(); in test_poll_cv_trigger()
141 thd.Join(); in test_poll_cv_trigger()
155 grpc_core::Thread thd("grpc_background_poll", &background_poll, &pargs); in test_poll_cv_trigger() local
156 thd.Start(); in test_poll_cv_trigger()
158 thd.Join(); in test_poll_cv_trigger()
172 grpc_core::Thread thd("grpc_background_poll", &background_poll, &pargs); in test_poll_cv_trigger() local
173 thd.Start(); in test_poll_cv_trigger()
175 thd.Join(); in test_poll_cv_trigger()
189 grpc_core::Thread thd("grpc_background_poll", &background_poll, &pargs); in test_poll_cv_trigger() local
[all …]
Dresolve_address_posix_test.cc41 grpc_core::Thread thd; member
63 args->thd.Join(); in args_finish()
108 args->thd = grpc_core::Thread("grpc_poll_pollset", actually_poll, args); in poll_pollset_until_request_done()
109 args->thd.Start(); in poll_pollset_until_request_done()
/external/jemalloc_new/test/unit/
Dtsd.c73 thd_t thd; in TEST_BEGIN() local
76 thd_create(&thd, thd_start, (void *)MALLOC_TSD_TEST_DATA_INIT); in TEST_BEGIN()
77 thd_join(thd, NULL); in TEST_BEGIN()
121 thd_t thd; in TEST_BEGIN() local
122 thd_create(&thd, thd_start_reincarnated, NULL); in TEST_BEGIN()
123 thd_join(thd, NULL); in TEST_BEGIN()
/external/grpc-grpc/test/core/gpr/
Dcpu_test.cc116 grpc_core::Thread* thd = in cpu_test() local
117 static_cast<grpc_core::Thread*>(gpr_malloc(sizeof(*thd) * nthreads)); in cpu_test()
120 thd[i] = grpc_core::Thread("grpc_cpu_test", &worker_thread, &ct); in cpu_test()
121 thd[i].Start(); in cpu_test()
129 thd[i].Join(); in cpu_test()
131 gpr_free(thd); in cpu_test()
/external/perfetto/test/stress_test/
Dstress_test.cc257 const auto& thd = it.second; in RunConfig() local
258 if (!thd.last_seen) { in RunConfig()
261 if (thd.seq_errors > 0) { in RunConfig()
263 thd.seq_errors); in RunConfig()
265 if (thd.counter_errors > 0) { in RunConfig()
267 thd.counter_errors); in RunConfig()
331 ParsedTraceStats::WriterThread& thd = t_it->second; in ParseTracePacket() local
333 ++thd.packets_seen; in ParseTracePacket()
335 if (thd.last_seen) { in ParseTracePacket()
339 thd.last_seen = true; in ParseTracePacket()
[all …]
/external/grpc-grpc/test/core/gprpp/
Dfork_test.cc83 for (auto& thd : thds) { in test_thd_count() local
84 thd.Join(); in test_thd_count()
118 grpc_core::Thread thd = in test_exec_count() local
123 thd.Start(); in test_exec_count()
128 thd.Join(); // This ensure that the call got un-blocked in test_exec_count()
/external/ltp/testcases/misc/math/float/
Dmain.c325 int thd; in handle_signals() local
377 for (thd = 0; thd < indice; thd++) { in handle_signals()
382 "%d)", thd, indice); in handle_signals()
384 pthread_cancel(threads[thd]); in handle_signals()
/external/rust/crates/grpcio-sys/grpc/src/cpp/thread_manager/
Dthread_manager.cc97 void ThreadManager::MarkAsCompleted(WorkerThread* thd) { in MarkAsCompleted() argument
100 completed_threads_.push_back(thd); in MarkAsCompleted()
123 for (auto thd : completed_threads) delete thd; in CleanupCompletedThreads() local
/external/grpc-grpc/src/cpp/thread_manager/
Dthread_manager.cc96 void ThreadManager::MarkAsCompleted(WorkerThread* thd) { in MarkAsCompleted() argument
99 completed_threads_.push_back(thd); in MarkAsCompleted()
122 for (auto thd : completed_threads) delete thd; in CleanupCompletedThreads() local
/external/jemalloc_new/test/integration/
Dthread_tcache_enabled.c71 thd_t thd; in TEST_BEGIN() local
73 thd_create(&thd, thd_start, NULL); in TEST_BEGIN()
74 thd_join(thd, NULL); in TEST_BEGIN()
Dallocated.c108 thd_t thd; in TEST_BEGIN() local
110 thd_create(&thd, thd_start, NULL); in TEST_BEGIN()
111 thd_join(thd, NULL); in TEST_BEGIN()
/external/jemalloc_new/test/include/test/
Dthd.h8 void thd_create(thd_t *thd, void *(*proc)(void *), void *arg);
9 void thd_join(thd_t thd, void **ret);
/external/grpc-grpc/src/ruby/end2end/
Dkilled_client_thread_client.rb33 thd = Thread.new do
40 thd.join
Dsig_int_during_channel_watch_client.rb36 thd = Thread.new do
54 thd.join
Dmultiple_killed_watching_threads_driver.rb24 thd = Thread.new do
32 thd.kill
Dchannel_closing_client.rb48 thd = Thread.new do
66 thd.join
/external/rust/crates/grpcio-sys/grpc/src/core/lib/iomgr/
Dtimer_manager.cc33 grpc_core::Thread thd; member
73 to_gc->thd.Join(); in gc_completed_threads()
92 ct->thd = grpc_core::Thread("grpc_global_timer", timer_thread, ct); in start_timer_thread_and_unlock()
93 ct->thd.Start(); in start_timer_thread_and_unlock()
Dexecutor.cc160 thd_state_[i].thd = grpc_core::Thread(); in SetThreading()
164 thd_state_[0].thd = in SetThreading()
166 thd_state_[0].thd.Start(); in SetThreading()
187 thd_state_[i].thd.Join(); in SetThreading()
370 thd_state_[cur_thread_count].thd = grpc_core::Thread( in Enqueue()
372 thd_state_[cur_thread_count].thd.Start(); in Enqueue()
/external/grpc-grpc/src/core/lib/iomgr/
Dtimer_manager.cc32 grpc_core::Thread thd; member
70 to_gc->thd.Join(); in gc_completed_threads()
89 ct->thd = grpc_core::Thread("grpc_global_timer", timer_thread, ct); in start_timer_thread_and_unlock()
90 ct->thd.Start(); in start_timer_thread_and_unlock()
Dexecutor.cc110 thd_state_[i].thd = grpc_core::Thread(); in SetThreading()
114 thd_state_[0].thd = in SetThreading()
116 thd_state_[0].thd.Start(); in SetThreading()
137 thd_state_[i].thd.Join(); in SetThreading()
306 thd_state_[cur_thread_count].thd = grpc_core::Thread( in Enqueue()
308 thd_state_[cur_thread_count].thd.Start(); in Enqueue()

1234