diff options
| author | Gavin Andresen <[email protected]> | 2015-05-15 12:40:36 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2015-05-16 17:59:23 -0400 |
| commit | f50105486f3a664c3ecd2d7a5552f2767941f4d7 (patch) | |
| tree | 9297f7b38a0219abe9aef0706f597a7aef4b7da5 /src/init.cpp | |
| parent | Merge pull request #6135 (diff) | |
| download | discoin-f50105486f3a664c3ecd2d7a5552f2767941f4d7.tar.xz discoin-f50105486f3a664c3ecd2d7a5552f2767941f4d7.zip | |
More robust CScheduler unit test
On a busy or slow system, the CScheduler unit test could fail because it
assumed all threads would be done after a couple of milliseconds.
Replace the hard-coded sleep with CScheduler stop() method that
will cleanly exit the servicing threads when all tasks are completely
finished.
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions