Lines Matching defs:thread
597 /* Try to avoid flushing the pipe buffer in the thread pool. */
618 /* Run FlushFileBuffers in the thread pool. */
922 /* Cancel synchronous read (which is happening in the thread pool). */
923 HANDLE thread;
928 thread = *thread_ptr;
929 if (thread == NULL) {
930 /* The thread pool thread has not yet reached the point of blocking, we
935 /* Spin until the thread has acknowledged (by setting the thread to
937 while (thread != INVALID_HANDLE_VALUE) {
938 r = CancelSynchronousIo(thread);
940 SwitchToThread(); /* Yield thread. */
941 thread = *thread_ptr;
1153 HANDLE thread;
1162 /* Create a handle to the current thread. */
1166 &thread,
1174 /* The lock needs to be held when thread handle is modified. */
1180 /* Let main thread know which worker thread is doing the blocking read. */
1182 *thread_ptr = thread;
1189 /* Block the thread until data is available on the pipe, or the read is
1194 /* Let the main thread know the worker is past the point of blocking. */
1195 assert(thread == *thread_ptr);
1198 /* Briefly acquire the mutex. Since the main thread holds the lock while it
1199 * is spinning trying to cancel this thread's I/O, we will block here until
1205 /* Close the handle to the current thread. */
1206 CloseHandle(thread);
2416 /* NtQueryInformationFile will block if another thread is performing a
2418 * synchronous, there may be a worker thread currently calling ReadFile() on