Lines Matching defs:thread
605 /* Try to avoid flushing the pipe buffer in the thread pool. */
626 /* Run FlushFileBuffers in the thread pool. */
1016 /* Cancel synchronous read (which is happening in the thread pool). */
1017 HANDLE thread;
1022 thread = *thread_ptr;
1023 if (thread == NULL) {
1024 /* The thread pool thread has not yet reached the point of blocking, we
1029 /* Spin until the thread has acknowledged (by setting the thread to
1031 while (thread != INVALID_HANDLE_VALUE) {
1032 r = CancelSynchronousIo(thread);
1034 SwitchToThread(); /* Yield thread. */
1035 thread = *thread_ptr;
1248 HANDLE thread;
1257 /* Create a handle to the current thread. */
1261 &thread,
1269 /* The lock needs to be held when thread handle is modified. */
1275 /* Let main thread know which worker thread is doing the blocking read. */
1277 *thread_ptr = thread;
1284 /* Block the thread until data is available on the pipe, or the read is
1289 /* Let the main thread know the worker is past the point of blocking. */
1290 assert(thread == *thread_ptr);
1293 /* Briefly acquire the mutex. Since the main thread holds the lock while it
1294 * is spinning trying to cancel this thread's I/O, we will block here until
1300 /* Close the handle to the current thread. */
1301 CloseHandle(thread);
2480 /* NtQueryInformationFile will block if another thread is performing a
2482 * synchronous, there may be a worker thread currently calling ReadFile() on