- 09 Jan, 2018 1 commit
-
-
Maged Michael authored
Summary: Adjust the segment size of the `UnboundedQueue` to 64 instead of 256, a size more suitable for CPUThreadPoolExecutor::CPUTask elements. Reviewed By: djwatson Differential Revision: D6665918 fbshipit-source-id: c34c4fa936ee5c6d6a3dd4489129c936369f3980
-
- 08 Jan, 2018 5 commits
-
-
Eric Niebler authored
Summary: This makes sure that whether folly is statically or dynamically linked, all folly exception types will have exactly one definition, and one set of type information. Reviewed By: mzlee Differential Revision: D6671431 fbshipit-source-id: 1c06826a05f87cbf9af747c9abdb5f524744d054
-
Keith Daigle authored
Summary: Found that testing would fail on aarch64 since mmx is an Intel thing. Changed it to just check for x64. Reviewed By: yfeldblum Differential Revision: D6670050 fbshipit-source-id: 6ce4b45bb5ef02d65305636d6ac28be7631ddf1b
-
Chad Austin authored
Summary: D6617812 wants to build a StringPiece from a literal with an embedded nul. Add a test to verify that _sp is suitable for this use case. Reviewed By: yfeldblum Differential Revision: D6651024 fbshipit-source-id: be4fb875762829fdb61c57fa72954fef286e9df0
-
Neel Goyal authored
Summary: ERR_error_string will use a static buffer if none is provided. This is unsafe in threaded envs when we build a string out of it later. Switch this to use ERR_error_string_n Reviewed By: yfeldblum, knekritz Differential Revision: D6664958 fbshipit-source-id: 2071347373ac61ebc28296fa66845cd718172b5e
-
Yedidya Feldblum authored
Summary: [Folly] Remove gcc-v4.7 support from `MemoryIdler`. As of gcc-v4.8, `std::is_trivial<std::chrono::duration<Rep, Period>>::value` holds. We no longer need any extra support. Reviewed By: meyering Differential Revision: D6673517 fbshipit-source-id: f28b2d126f113547ebf36c85f9fa37a5d944d65b
-
- 07 Jan, 2018 1 commit
-
-
Yedidya Feldblum authored
Summary: [Folly] Terminal comma for `FutexResult` enumerators. Style nit. Reviewed By: meyering Differential Revision: D6673523 fbshipit-source-id: abf9f4d3e99bf9a6d3042a49252b1b1190e69b9f
-
- 06 Jan, 2018 3 commits
-
-
Yedidya Feldblum authored
Summary: Use `auto` for scope-guard locals v.s. `folly::ScopeGuard`. Reviewed By: igorsugak, meyering Differential Revision: D6664915 fbshipit-source-id: ea239b712f3f9dc7ef81105aaf82f4b36bc07db5
-
Eric Niebler authored
Summary: Default constructors are strange and often unexpected. Refactor. Reviewed By: yfeldblum Differential Revision: D6667480 fbshipit-source-id: 24c456c46c846c61e28f1a88806d7c36d9192493
-
Maged Michael authored
Summary: Change the threshold for pushing privately held retired object to the domain to a moderate constant instead of using the threshold for bulk reclamation which is too high for this purpose. Reviewed By: djwatson Differential Revision: D6665904 fbshipit-source-id: 0b090884843b0296a93af7994f7183f41c00000e
-
- 05 Jan, 2018 10 commits
-
-
Yedidya Feldblum authored
Summary: [Folly] `Synchronized::exchange`, for assigning a new value and returning the old value. (Note: this ignores all push blocking failures!) Differential Revision: D6653482 fbshipit-source-id: 68f4bd330bc2cf37bb92aff98b8ce3221334112e
-
Yedidya Feldblum authored
Summary: [Folly] Fix copyright lines in `folly/synchronization/Baton.h`. Reviewed By: meyering Differential Revision: D6665595 fbshipit-source-id: 84aa0c475f01c858d543a047103437c083b3a4ed
-
Mingtao Yang authored
Summary: Adds wording indicating that it is safe to call this function multiple times. Reviewed By: yfeldblum Differential Revision: D6625530 fbshipit-source-id: 2305f7b8e3451a6663003d23230b22c6f65a3729
-
Yedidya Feldblum authored
Summary: [Folly] Cut `glog` include from `folly/synchronization/RWSpinLock.h`. Reviewed By: meyering Differential Revision: D6659300 fbshipit-source-id: 0f1b79d98be0656694f57667252a16acd54e2414
-
Yedidya Feldblum authored
Summary: [Folly] Move `folly/RWSpinLock.h` to `folly/synchronization/`. Reviewed By: elsteveogrande Differential Revision: D6659265 fbshipit-source-id: 307723e22f42ceb104f26657aed8b34f7e183afb
-
Yedidya Feldblum authored
Summary: [Folly] Extract `WaitOptions` from `SaturatingSemaphore`. This type may prove useful in the future for a variety of similar cases, and so does not need to be locked up inside `SaturatingSemaphore`. Additionally: * Extract and redraft a comment from `Baton`. * Rename `pre_block` to `spin_max`. Reviewed By: djwatson, aary Differential Revision: D6632875 fbshipit-source-id: 6b7faeeb6e1ac2011a037c2b560def0ee2e9f3d4
-
Yedidya Feldblum authored
Summary: [Folly] Move `folly/BitIterator.h` to `folly/container/`. Reviewed By: djwatson Differential Revision: D6648357 fbshipit-source-id: 5617e3210f58435fcbf3ef07fa745da47dbce475
-
Yedidya Feldblum authored
Summary: [Folly] Move `InPlaceConstruction` test in `folly/test/SynchronizedTest.cpp`. Differential Revision: D6653481 fbshipit-source-id: f0eadfd6c2f41e9f597a666d01e40d5553447c70
-
Yedidya Feldblum authored
Summary: [Folly] Fix copyright lines for `folly/Synchronized.h`. Reviewed By: meyering Differential Revision: D6664326 fbshipit-source-id: 71a0fc17358e41dfc751b8bcb0736c288975a4a0
-
Neel Goyal authored
Summary: Add methods to create a X509StoreUniquePtr from a ca file or buffer. Reviewed By: yfeldblum Differential Revision: D6662538 fbshipit-source-id: 646f61596f2787756b2fa5998a43f36d75a91d90
-
- 04 Jan, 2018 1 commit
-
-
Keith Daigle authored
Summary: This breaks while building on aarch64 each time because the headers aren't in the repo. I did a quick grep and I don't see anything in folly that uses OptionalAwaitable or OptionalPromise so perhaps it's possible to remove instead, can do that if preferred. Depends on D6611609 to complete build of tests cleanly. Reviewed By: yfeldblum Differential Revision: D6643759 fbshipit-source-id: f480d50383f85fbe905daaad74198b6557609347
-
- 03 Jan, 2018 3 commits
-
-
Yedidya Feldblum authored
Summary: [Folly] Avoid allocs in dtors in futures `collect`. `CollectContext`, a detail helper type, allocates storage for a results vector in its dtor. This is an awkward situation and should be avoided. Reviewed By: ericniebler Differential Revision: D6649299 fbshipit-source-id: 87746fcc78fa080f63505d7bb864aca6c4a3d7cb
-
Keith Daigle authored
Summary: While trying to build folly on aarch64 found that the SharedMutexTest wouldn't build because it uses RWTicketSpinLock which was only available on x86 platforms. Updated to allow build on aarch64 after suggestion by Orvid Reviewed By: yfeldblum Differential Revision: D6611609 fbshipit-source-id: 8ec477cdedac0f0a705608bbac42dd63b3efb919
-
Lee Howes authored
Summary: Complete set of get and getVia methods including addition of a result operation on FutureBase that provides functionality of the old getTry on Future by returning a Try by reference. Reviewed By: yfeldblum Differential Revision: D6640056 fbshipit-source-id: 3ac01f7bc4b128e641f08d9a99280a18ffce82f9
-
- 02 Jan, 2018 5 commits
-
-
Yedidya Feldblum authored
Summary: [Folly] Remove `SingletonVault` C bindings. They are not generally needed. Reviewed By: spalamarchuk Differential Revision: D6632104 fbshipit-source-id: 3aecb35277bc76a2171487404d6994a5ea296afc
-
Yedidya Feldblum authored
Summary: [Folly] Use member-invoke traits in `LockTraits`. V.s. spelling out the SFINAE manually. Reviewed By: Orvid Differential Revision: D6637380 fbshipit-source-id: 212e0cc5e54503b31e458b6bda93b2a3b24e6c59
-
Yedidya Feldblum authored
Summary: [Folly] `invoke` and member-`invoke` tweaks. * Direct `static_cast` v.s. `std::forward` is okay. * Implement member-`invoke` in terms of `invoke` and extract most of it to a helper type, minimizing the code directly generated by the preprocessor. Reviewed By: spalamarchuk Differential Revision: D6644119 fbshipit-source-id: e58a83d7ff2dd71b0377d864ef089c34e0239c8d
-
Yedidya Feldblum authored
Summary: [Folly] Add `ColdClassTest.cpp` to oss builds. Reviewed By: spalamarchuk Differential Revision: D6648831 fbshipit-source-id: f8d8a727d63e4e8b83391db454de990027f1bad4
-
Yedidya Feldblum authored
Summary: [Folly] Fix copyright lines for `Bits.h` and move `BitsBenchmark.cpp`. Reviewed By: spalamarchuk Differential Revision: D6648828 fbshipit-source-id: 5eed558ac2d47a1497d64173bc84a4ca27d79764
-
- 01 Jan, 2018 3 commits
-
-
Yedidya Feldblum authored
Summary: [Folly] Fix some copyright lines in `folly/`. (Note: this ignores all push blocking failures!) Reviewed By: Orvid Differential Revision: D6648215 fbshipit-source-id: 6fc446028ff79aa44116424e86ad454077717f8e
-
Yedidya Feldblum authored
Summary: [Folly] Fix some copyright lines in `folly/lang/`. (Note: this ignores all push blocking failures!) Reviewed By: Orvid Differential Revision: D6648214 fbshipit-source-id: fa2afdb8369252b74b914622ad39f7f27261d2c1
-
Yedidya Feldblum authored
Summary: [Folly] Fix some copyright lines in `folly/experimental/symbolizer/`. (Note: this ignores all push blocking failures!) Reviewed By: Orvid Differential Revision: D6648183 fbshipit-source-id: 36f9df5af91400a37dfa5ee2b209ffd47d5069df
-
- 31 Dec, 2017 2 commits
-
-
Yedidya Feldblum authored
Summary: [Folly] `constexpr_pow`. The power function. Initially, supports nonnegative integers only. Reviewed By: spalamarchuk Differential Revision: D6646376 fbshipit-source-id: 33a5a45f496b6f3be52d0cd7e3a5f2cd7edb3026
-
Yedidya Feldblum authored
Summary: [Folly] Give detail functions in `ConstexprMath.h` decorated names. So that other code also in `namespace folly::detail` which invokes the non-detail functions will result in ambiguity. Reviewed By: spalamarchuk Differential Revision: D6646313 fbshipit-source-id: 679e4cfe1c90f494acacef8b2a38a453db4d79d5
-
- 30 Dec, 2017 3 commits
-
-
Yedidya Feldblum authored
Summary: The rename is to bring it closer in line with the naming conventions in the standard library, and the move is because it doesn't make sense to have clocks defined in stop_watch. Reviewed By: Orvid Differential Revision: D6329551 fbshipit-source-id: 09d9a48eb47b8fd3761a1bd4350d9ca748fe1f96
-
Yedidya Feldblum authored
Summary: It was missing, so it wasn't being installed. Fixes https://github.com/facebook/folly/issues/727 Reviewed By: Orvid Differential Revision: D6642322 fbshipit-source-id: 70c10e1265410f73b6c0cd759ce51a5176bfef83
-
Yedidya Feldblum authored
Summary: [Folly] Tweaks to `folly::call_once` and `folly::once_flag`. In particular: * Move the template class out of `detail`. * Add parameterization by the atomic type. * Expand the comments. Reviewed By: Orvid Differential Revision: D6637250 fbshipit-source-id: 3806580ca0badf8464f637750c4873b2aba9f916
-
- 28 Dec, 2017 3 commits
-
-
Aaryaman Sagar authored
Summary: std::remove_cvref is like std::decay, but without the function to pointer and array to pointer decays Backport of http://en.cppreference.com/w/cpp/types/remove_cvref Reviewed By: yfeldblum Differential Revision: D6639513 fbshipit-source-id: 2a5e252678aacc09acf6ce4565872e7efb9b48f3
-
Aaryaman Sagar authored
Summary: As it stands the user cannot use initializer list constructors in the underlying type, this fixes that and provides a good interface change. This allows them to use list initialization, which works with initializer lists Reviewed By: yfeldblum Differential Revision: D6620994 fbshipit-source-id: c29199f97b434d84dd8d4cee2f00c5eccb316166
-
Dave Watson authored
Summary: A ParkingLot API inspired by linux futex syscall, and WebKit's parkingLot. Extends the futex interface with lambdas, such that many different sleeping abstractions can be built. Reviewed By: yfeldblum, aary Differential Revision: D6581826 fbshipit-source-id: dba741fe4ed34f27bfad5f5747adce85741441e0
-