commit | d8e6c1653677a47fcc703c6e846d1373ee5c7967 | [log] [tgz] |
---|---|---|
author | Louis Dionne <ldionne.2@gmail.com> | Mon Nov 23 15:52:03 2020 -0500 |
committer | Copybara-Service <copybara-worker@google.com> | Mon Nov 30 01:55:23 2020 -0800 |
tree | 8df6f4c988251931c1cef1527900a98380be3697 | |
parent | feeb1b9f0356a1c763ae779d29f09700bc22f387 [diff] |
[libc++] Introduce an indirection to create threads in the test suite We create threads using std::thread in various places in the test suite. However, the usual std::thread constructor may not work on all platforms, e.g. on platforms where passing a stack size is required to create a thread. This commit introduces a simple indirection that makes it easier to tweak how threads are created inside the test suite on various platforms. Note that tests that are purposefully calling std::thread's constructor directly (e.g. because that is what they're testing) were not modified. GitOrigin-RevId: 564628014c404bf57aa7cd9a5337198046bdd1ed