Lines Matching defs:td
74 struct __gthr_win32_thr_desc *td = (struct __gthr_win32_thr_desc *) args;
76 __gthread_setspecific (__gthr_win32_tls, td);
78 DWORD exit_code = (DWORD) (ULONG_PTR) (*td->func) (td->args);
89 struct __gthr_win32_thr_desc *td;
93 td = malloc (sizeof (struct __gthr_win32_thr_desc));
94 td->func = func;
95 td->args = args;
96 td->h = CreateThread (NULL, 0,
98 (LPVOID) td, CREATE_SUSPENDED, NULL);
99 if (td->h)
101 ResumeThread (td->h);
102 *thr = (__gthread_t) td->h;
107 free (td);
145 struct __gthr_win32_thr_desc *td;
149 if (!(td = __gthread_getspecific (__gthr_win32_tls)))
152 td = malloc (sizeof (struct __gthr_win32_thr_desc));
153 td->func = NULL;
154 td->args = NULL;
155 if (!DuplicateHandle (proc, GetCurrentThread(), proc, &td->h, 0, FALSE,
158 __gthread_setspecific (__gthr_win32_tls, td);
161 return td->h;