"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stress-sleep.c" between
stress-ng-0.09.52.tar.xz and stress-ng-0.09.54.tar.xz

About: stress-ng will stress test a computer system in various selectable ways. It was designed to exercise various physical subsystems of a computer as well as the various operating system kernel interfaces.

stress-sleep.c  (stress-ng-0.09.52.tar.xz):stress-sleep.c  (stress-ng-0.09.54.tar.xz)
skipping to change at line 52 skipping to change at line 52
uint64_t sleep_max; uint64_t sleep_max;
sleep_max = get_uint64(opt); sleep_max = get_uint64(opt);
check_range("sleep-max", sleep_max, check_range("sleep-max", sleep_max,
MIN_SLEEP, MAX_SLEEP); MIN_SLEEP, MAX_SLEEP);
return set_setting("sleep-max", TYPE_ID_UINT64, &sleep_max); return set_setting("sleep-max", TYPE_ID_UINT64, &sleep_max);
} }
#if defined(HAVE_LIB_PTHREAD) #if defined(HAVE_LIB_PTHREAD)
static void MLOCKED_TEXT stress_sigalrm_handler(int dummy) static void MLOCKED_TEXT stress_sigalrm_handler(int signum)
{ {
(void)dummy; (void)signum;
thread_terminate = true; thread_terminate = true;
} }
/* /*
* stress_pthread_func() * stress_pthread_func()
* pthread that performs different ranges of sleeps * pthread that performs different ranges of sleeps
*/ */
static void *stress_pthread_func(void *c) static void *stress_pthread_func(void *c)
{ {
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)