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

Switch includes of PThread to the portability header

Summary:
As part of the work towards getting Folly compiling without PThread, it needs to be treated as a non-portable include.
This switches the includes not already covered by other diffs.

Reviewed By: yfeldblum

Differential Revision: D4882777

fbshipit-source-id: d9521564c814f9bcff2fcb358cbb89b3777c327d
parent 8a569003
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
#include <cstdint> #include <cstdint>
#include <pthread.h> #include <folly/portability/PThread.h>
namespace folly { namespace folly {
......
...@@ -19,10 +19,9 @@ ...@@ -19,10 +19,9 @@
#include <thread> #include <thread>
#include <type_traits> #include <type_traits>
#include <pthread.h>
#include <folly/Range.h> #include <folly/Range.h>
#include <folly/Traits.h> #include <folly/Traits.h>
#include <folly/portability/PThread.h>
namespace folly { namespace folly {
......
...@@ -22,11 +22,11 @@ ...@@ -22,11 +22,11 @@
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/detail/CacheLocality.h> #include <folly/detail/CacheLocality.h>
#include <folly/portability/PThread.h>
#include <folly/portability/SysMman.h> #include <folly/portability/SysMman.h>
#include <folly/portability/Unistd.h> #include <folly/portability/Unistd.h>
#include <limits.h> #include <limits.h>
#include <pthread.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <utility> #include <utility>
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#pragma once #pragma once
#include <limits.h> #include <limits.h>
#include <pthread.h>
#include <atomic> #include <atomic>
#include <functional> #include <functional>
...@@ -34,6 +33,7 @@ ...@@ -34,6 +33,7 @@
#include <folly/MicroSpinLock.h> #include <folly/MicroSpinLock.h>
#include <folly/Portability.h> #include <folly/Portability.h>
#include <folly/ScopeGuard.h> #include <folly/ScopeGuard.h>
#include <folly/portability/PThread.h>
#include <folly/detail/StaticSingletonManager.h> #include <folly/detail/StaticSingletonManager.h>
......
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