Lines Matching refs:thread
89 Thread_CONSTRUCT(&p->thread)
148 /* if Writing (Processing) thread was started, we must call MtSync_StopWriting() */
153 if (!Thread_WasCreated(&p->thread) || p->needStart)
160 /* we don't use buffer in this thread after StopWriting().
162 And we restore default UNLOCKED state for stopped thread */
168 So the thread will see (p->stopWriting) at some
170 The thread doesn't need to fill all avail free blocks,
171 so we can get fast thread stop.
193 if (Thread_WasCreated(&p->thread))
195 /* we want thread to be in Stopped state before sending EXIT command.
198 /* thread in Stopped state here : (p->needStart == true) */
201 Event_Set(&p->canStart); // we send EXIT command to thread
202 Thread_Wait_Close(&p->thread); // we wait thread finishing
257 But in case of some unexpected code failure we will get fast exit from thread */
263 wres = Thread_Create_With_Affinity(&p->thread, startAddress, obj, (CAffinityMask)p->affinity);
265 wres = Thread_Create(&p->thread, startAddress, obj);
461 PRF(printf("Hash thread block = %d pos = %d\n", (unsigned)blockIndex, mt->MatchFinder->pos));
540 } // for() thread end
763 PRF(printf(" BT thread block = %d pos = %d\n", (unsigned)blockIndex, mt->pos));
892 /* Init without data reading. We don't want to read data in this thread */