Lines Matching defs:thread
15 // worker.h : worker thread interface
17 // This file contains the Worker Thread class interface
52 // - Control thread creates object.
53 // - Control thread calls AddWorkers(1) for each worker thread.
54 // - Control thread calls Initialize().
55 // - Control thread launches worker threads.
56 // - Every worker thread frequently calls ContinueRunning().
57 // - Control thread periodically calls PauseWorkers(), effectively sleeps, and
61 // - Control thread eventually calls StopWorkers().
63 // - Control thread joins worker threads.
64 // - Control thread calls Destroy().
65 // - Control thread destroys object.
79 // Methods for the control thread.
84 // Called by the control thread to increase the worker count. Must be called
91 // Called by the control thread. May not be called multiple times. If
95 // Called by the control thread after joining all worker threads. Must be
100 // Called by the control thread to tell the workers to pause. Does not return
106 // Called by the control thread to tell the workers to resume from a pause.
111 // Called by the control thread to tell the workers to stop. May only be
202 // Each thread repeats a specific
206 // Enum to mark a thread as low/med/high priority.
215 // Initialize values and thread ID number.
224 // Spawn the worker thread, by running Work().
230 // Wait for the thread to complete its cleanup.
232 // Kill worker thread with SIGINT.
235 // This is the task function that the thread executes.
248 // Stops per-WorkerThread timer and records thread run duration.
263 // Calculate worker thread specific copied data.
266 // Calculate worker thread specific bandwidth.
286 // Returns CPU mask of CPUs this thread is bound to,
297 // Bind worker thread to specified CPU(s)
371 // A worker thread can yield itself to give up CPU until it's scheduled again
376 int thread_num_; // Thread ID.
379 volatile int64 errorcount_; // Miscompares seen by this thread.
381 cpu_set_t cpu_mask_; // Cores this thread is allowed to run on.
382 volatile uint32 tag_; // Tag hint for memory this thread can use.
386 // Thread timing variables.
387 struct timeval start_time_; // Worker thread start time.
392 pthread_t thread_; // Pthread thread ID.
393 Priority priority_; // Worker thread priority.
408 // Worker thread to perform File IO.
416 // Calculate worker thread specific bandwidth.
491 // Worker thread to perform Network IO.
499 // Calculate worker thread specific bandwidth.
518 // Worker thread to reflect Network IO.
533 // Worker thread to detect incoming Network IO.
549 NetworkSlaveThread thread;
557 // Worker thread to perform Memory Copy.
562 // Calculate worker thread specific bandwidth.
570 // Worker thread to perform Memory Invert.
575 // Calculate worker thread specific bandwidth.
585 // Worker thread to fill blank pages on startup.
589 // Set how many pages this thread should fill before exiting.
600 // Worker thread to verify page data matches pattern data.
601 // Thread will check and replace pages until "done" flag is set,
607 // Calculate worker thread specific bandwidth.
616 // Worker thread to poll for system error messages.
617 // Thread will check for messages until "done" flag is set.
627 // Computation intensive worker thread to stress CPU.
637 // Worker thread that tests the correctness of the
649 int cc_local_num_; // Local counter for each thread.
651 int cc_thread_num_; // The integer id of the thread which is
660 // Worker thread to perform disk test.
665 // Calculate disk thread specific bandwidth.
735 int update_block_table_; // If true, assume this is the thread
779 // Worker thread to perform checks in a specific memory region.
788 // Calculate worker thread specific bandwidth.