commit | 89293b23984488c5ed4eacdd659f8902d4d02985 | [log] [tgz] |
---|---|---|
author | Alexey Kodanev <alexey.kodanev@oracle.com> | Tue Feb 18 17:53:36 2014 +0400 |
committer | Cyril Hrubis <chrubis@suse.cz> | Mon Mar 24 18:08:52 2014 +0100 |
tree | 84efffc5cab50bab82de1cd796232418fc592bae | |
parent | 8860eb70f5c175da8e158d0da52454c073361c54 [diff] |
lib/tst_res.c: synchronize access to tst_res functions The patch adds locking to tst_res.c functions that use global variables e.g. T_exitval, tst_count, T_out, ... Note: The mutexes will only do the locking if the test is linked with pthread library, otherwise no-op stubs (defined in libc) are used. Also some functions calls each other that is why recursive mutex is used. Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com>