1 // Copyright (c) 2011-present, Facebook, Inc. All rights reserved. 2 // This source code is licensed under both the GPLv2 (found in the 3 // COPYING file in the root directory) and Apache 2.0 License 4 // (found in the LICENSE.Apache file in the root directory). 5 6 #include <folly/synchronization/AtomicNotification.h> 7 8 #include <cstdint> 9 10 namespace folly { 11 namespace detail { 12 namespace atomic_notification { 13 14 // ParkingLot instance used for the atomic_wait() family of functions 15 // 16 // This has been defined as a static object (as opposed to allocated to avoid 17 // destruction order problems) because of possible uses coming from 18 // allocation-sensitive contexts. 19 ParkingLot<std::uint32_t> parkingLot; 20 21 } // namespace atomic_notification 22 } // namespace detail 23 } // namespace folly 24