Home
last modified time | relevance | path

Searched refs:dtor (Results 1 - 25 of 38) sorted by relevance

12

/third_party/musl/src/exit/
H A Dcxa_thread_atexit_impl.c28 void (*dtor) (void*); member
45 cur->dtor(cur->arg); in run_cur_thread_dtors()
85 struct dtor_list* dtor = __libc_malloc(sizeof(*dtor)); in __cxa_thread_atexit_impl() local
86 if (!dtor) { in __cxa_thread_atexit_impl()
89 dtor->dtor = func; in __cxa_thread_atexit_impl()
90 dtor->arg = arg; in __cxa_thread_atexit_impl()
91 dtor->dso_handle = dso_handle; in __cxa_thread_atexit_impl()
92 dtor in __cxa_thread_atexit_impl()
106 struct thread_local_dtor* dtor = __libc_malloc(sizeof(*dtor)); __cxa_thread_atexit_impl() local
[all...]
/third_party/musl/src/thread/
H A Dpthread_key_create.c33 int __pthread_key_create(pthread_key_t *k, void (*dtor)(void *)) in __pthread_key_create()
42 if (!dtor) dtor = nodtor; in __pthread_key_create()
48 keys[next_key = *k = j] = dtor; in __pthread_key_create()
88 void (*dtor)(void *) = keys[i]; in __pthread_tsd_run_dtors()
90 if (val && dtor && dtor != nodtor) { in __pthread_tsd_run_dtors()
92 dtor(val); in __pthread_tsd_run_dtors()
110 void (*dtor)(void *) = keys[i]; in __pthread_tsd_run_dtors_ex1()
112 if (val && dtor in __pthread_tsd_run_dtors_ex1()
[all...]
H A Dtss_create.c4 int tss_create(tss_t *tss, tss_dtor_t dtor) in tss_create() argument
9 return __pthread_key_create(tss, dtor) ? thrd_error : thrd_success; in tss_create()
/third_party/curl/lib/
H A Dbufref.c41 br->dtor = NULL; in Curl_bufref_init()
61 if(br->ptr && br->dtor) in Curl_bufref_free()
62 br->dtor((void *) br->ptr); in Curl_bufref_free()
64 br->dtor = NULL; in Curl_bufref_free()
74 void (*dtor)(void *)) in Curl_bufref_set()
82 br->dtor = dtor; in Curl_bufref_set()
H A Dllist.c39 Curl_llist_init(struct Curl_llist *l, Curl_llist_dtor dtor) in Curl_llist_init() argument
42 l->dtor = dtor; in Curl_llist_init()
128 /* call the dtor() last for when it actually frees the 'e' memory itself */ in Curl_llist_remove()
129 if(list->dtor) in Curl_llist_remove()
130 list->dtor(user, ptr); in Curl_llist_remove()
H A Dbufref.h31 void (*dtor)(void *); /* Associated destructor. */ member
42 void (*dtor)(void *));
H A Dhash.c43 h->dtor(e->ptr); in hash_element_dtor()
63 Curl_hash_dtor dtor) in Curl_hash_init()
69 DEBUGASSERT(dtor); in Curl_hash_init()
74 h->dtor = dtor; in Curl_hash_init()
59 Curl_hash_init(struct Curl_hash *h, int slots, hash_function hfunc, comp_function comparator, Curl_hash_dtor dtor) Curl_hash_init() argument
H A Dhash.h56 Curl_hash_dtor dtor; member
78 Curl_hash_dtor dtor);
H A Dllist.h41 Curl_llist_dtor dtor; member
H A Dftplistparser.h64 wildcard_dtor dtor; member
/third_party/mesa3d/src/c11/impl/
H A Dthreads_win32.c51 Max registerable TSS dtor number.
126 tss_dtor_t dtor; member
129 static int impl_tss_dtor_register(tss_t key, tss_dtor_t dtor) in impl_tss_dtor_register() argument
133 if (!impl_tss_dtor_tbl[i].dtor) in impl_tss_dtor_register()
139 impl_tss_dtor_tbl[i].dtor = dtor; in impl_tss_dtor_register()
147 if (impl_tss_dtor_tbl[i].dtor) { in impl_tss_dtor_invoke()
150 (impl_tss_dtor_tbl[i].dtor)(val); in impl_tss_dtor_invoke()
437 tss_create(tss_t *key, tss_dtor_t dtor) in tss_create() argument
441 if (dtor) { in tss_create()
[all...]
H A Dthreads_posix.c330 tss_create(tss_t *key, tss_dtor_t dtor) in tss_create() argument
333 return (pthread_key_create(key, dtor) == 0) ? thrd_success : thrd_error; in tss_create()
/third_party/mesa3d/src/gallium/frontends/nine/
H A Diunknown.h65 void (*dtor)(void *data); /* top-level dtor */ member
78 void (*dtor)(void *data); member
134 This->dtor(This); in NineUnknown_Destroy()
157 This->dtor(This); in NineUnknown_Unbind()
177 This->dtor(This); in NineUnknown_Detach()
H A Diunknown.c60 This->dtor = pParams->dtor; in NineUnknown_ctor()
148 This->dtor(This); in NineUnknown_Release()
158 * for AddRef and Release, except for dtor as some of the dtors require it. */
172 This->dtor(This); in NineUnknown_ReleaseWithDtorLock()
H A Dnine_helpers.h86 __params.dtor = (void *)Nine##nine##_dtor; \
112 __params.dtor = (void *)Nine##nine##_dtor; \
138 __params.dtor = (void *)Nine##nine##_dtor; \
/third_party/curl/tests/unit/
H A Dunit1661.c64 fail_unless(!bufref.dtor, "Destructor must be NULL");
76 fail_unless(bufref.dtor == test_free, "Destructor badly set");
113 fail_unless(!bufref.dtor, "Destructor must be NULL");
H A Dunit1300.c73 * 4: list dtor will be NULL
79 fail_unless(llist.dtor == test_Curl_llist_dtor,
80 "list dtor should initiate to test_Curl_llist_dtor");
/third_party/musl/libc-test/src/functional/
H A Dpthread_tsd.c11 static void dtor(void *p) in dtor() function
32 TESTR(r, pthread_key_create(&k1, dtor), "failed to create key"); in main()
33 TESTR(r, pthread_key_create(&k2, dtor), "failed to create key"); in main()
40 TESTC(foo[0] == 1, "dtor failed to run"); in main()
41 TESTC(foo[1] == 1, "dtor failed to run"); in main()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_tss_test.cpp46 tss_dtor_t dtor = TssThreadFunc; in HWTEST_F() local
50 EXPECT_EQ(thrd_success, tss_create(&tssKey, dtor)); in HWTEST_F()
/third_party/musl/libc-test/src/regression/
H A Dpthread_exit-dtor.c17 static void dtor(void *p) in dtor() function
31 TESTC(data == 1, "dtor was not run for the last thread"); in cleanup()
69 // dtor should set tsd (arg and data) from 0 to 1 in main()
74 TEST(r, pthread_key_create(&k, dtor)); in main()
79 TESTC(arg == 1, "dtor failed to run"); in main()
/third_party/rust/crates/rustix/tests/net/
H A Dmain.rs29 #[ctor::dtor]
/third_party/glfw/deps/
H A Dtinycthread.c521 int tss_create(tss_t *key, tss_dtor_t dtor) in tss_create() argument
525 if (dtor != NULL) in tss_create()
535 if (pthread_key_create(key, dtor) != 0) in tss_create()
H A Dtinycthread.h409 * @param dtor Destructor function. This can be NULL.
412 * @note The destructor function is not supported under Windows. If @c dtor is
416 int tss_create(tss_t *key, tss_dtor_t dtor);
/third_party/mesa3d/src/gallium/frontends/omx/tizonia/
H A Dh264eoutport.c134 dtor, h264e_outport_dtor, in h264e_outport_init()
H A Dh264dinport.c140 dtor, h264d_inport_dtor, in h264d_inport_init()

Completed in 9 milliseconds

12