Check for std::this_thread::sleep_for.
authorPeter Griess <pgriess@fb.com>
Wed, 9 Oct 2013 03:57:32 +0000 (20:57 -0700)
committerSara Golemon <sgolemon@fb.com>
Thu, 24 Oct 2013 21:53:41 +0000 (14:53 -0700)
commit31005a98c091b4f28650cad4b7420d54b72381ad
tree4b14c757654cb03bd4ad1c3b236d04754cf8dee8
parent77cc480dad0500f00717a5feec7ac37a4e3ac0a9
Check for std::this_thread::sleep_for.

Summary:
- Some installations of libstdc++ don't have this defined. This happens
if they were built without --enable-libstdcxx-time. Detect this and
avoid tests that rely on this behavior.

Test Plan:
- fbconfig -r folly && fbmake runtests
- ./configure && make check on Ubuntu/FC/Mac

Reviewed By: meyering@fb.com

FB internal diff: D1002963
folly/configure.ac
folly/test/ThreadLocalTest.cpp