diff options
author | Richard Weinberger <richard@nod.at> | 2016-02-22 14:52:05 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2017-02-21 10:13:26 +0100 |
commit | fc7aa01f07919155fc167846125bc8f7e965b89d (patch) | |
tree | 5d5fe930493bc5c3e192d6c64530ad30095e451b /include/libmtd.h | |
parent | fdec8a4ad3b166d83e00a04f9e926dc3261daf5d (diff) |
ubi: tests: Speedup io_paral by using rand_r()
rand() is not thread safe, but glibc seems to use a shared state which is
protected by a mutex. io_paral spawns a few threads and they call rand()
more or less in parallel, which causes heavy lock contention. That
makes the test extremely slow on some setups.
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: David Gstir <david@sigma-star.at>
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/libmtd.h')
0 files changed, 0 insertions, 0 deletions