Commit 4cbf7a64 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Explicitly refer to the std::chrono namespace to avoid conflicts with the folly::chrono namespace

Summary:
This is a hard requirement due to an upcoming change in Folly.

The codemod was only run on files that referenced the `std::chrono` namespace with an unqualified `chrono` and also used both the `std` and `folly` namespaces.
```
fbgr -sl "[^:]chrono::" | xargs grep -l "using namespace std;" | xargs grep -l "using namespace folly;" | xargs sed -r -i 's/([^:])chrono::([a-z])/\1std::chrono::\2/g'
```

Reviewed By: yfeldblum

Differential Revision: D6547864

fbshipit-source-id: 4a8230d311edbaa173722a09b2773e8d053fae7e
parent 9b471821
...@@ -128,7 +128,8 @@ TEST_F(EventHandlerTest, many_concurrent_producers) { ...@@ -128,7 +128,8 @@ TEST_F(EventHandlerTest, many_concurrent_producers) {
runInThreadsAndWait(nproducers, runInThreadsAndWait(nproducers,
[&](size_t /* k */) { [&](size_t /* k */) {
for (size_t i = 0; i < writes / nproducers; ++i) { for (size_t i = 0; i < writes / nproducers; ++i) {
this_thread::sleep_for(chrono::milliseconds(1)); this_thread::sleep_for(
std::chrono::milliseconds(1));
efd_write(1); efd_write(1);
} }
}); });
...@@ -175,7 +176,8 @@ TEST_F(EventHandlerTest, many_concurrent_consumers) { ...@@ -175,7 +176,8 @@ TEST_F(EventHandlerTest, many_concurrent_consumers) {
runInThreadsAndWait(nproducers, runInThreadsAndWait(nproducers,
[&](size_t /* k */) { [&](size_t /* k */) {
for (size_t i = 0; i < writes / nproducers; ++i) { for (size_t i = 0; i < writes / nproducers; ++i) {
this_thread::sleep_for(chrono::milliseconds(1)); this_thread::sleep_for(
std::chrono::milliseconds(1));
queue.blockingWrite(nullptr); queue.blockingWrite(nullptr);
efd_write(1); efd_write(1);
--writesRemaining; --writesRemaining;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment