- 31 Jul, 2015 10 commits
-
-
Orvid King authored
Summary: I have no idea why this specific declaration would error, or if there is a difference in meaning, but this fixes MSVC's absurd parser error. Closes #277 Reviewed By: @yfeldblum Differential Revision: D2284096
-
Orvid King authored
Summary: Improves MSVC support. Closes #274 Note that this diff has been heavily modified from @Orvid's original PR by @yfeldblum and @sgolemon Reviewed By: @yfeldblum Differential Revision: D2284035 Pulled By: @sgolemon
-
Orvid King authored
Summary: Closes #264 Modified by @sgolemon from the original PR to declare MSVC2015-final as the official minimum version, making the defines in the original PR unnecessary. Reviewed By: @yfeldblum Differential Revision: D2284130 Pulled By: @sgolemon
-
Nick Terrell authored
Summary: There are a bunch of methods in `folly::dynamic` that return a reference to a sub-object, e.g. `getString()`. These methods are a bit unsafe because it allows you to write code with dangling references when the `folly::dynamic` object is an rvalue: auto& obj = parse_json(some_string).at("key"); However, the bigger win is that when we have an rvalue `folly::dynamic`, such as returned by `getDefault(...)`, we can move the sub-object out: auto obj = parse_json(some_string).at("key"); auto str = obj.getDefault("another-key", "").getString(); In the first line, the subobject is copied out when it could be safely moved out. In the second line `getDefault(...)` copies the dynamic sub-object out, and then `getString()` copies the string out, when the string could be moved. Also in the case of `getDefault()` being called on a rvalue, we can move the sub-object out. Reviewed By: @marcinpe Differential Revision: D2267588
-
Sophia Wang authored
Summary: remove unnecessary stuff Reviewed By: @siyengar Differential Revision: D2284095
-
Brian Watling authored
Summary: Add accessor to estimate a FiberManager's run queue size Reviewed By: @sarangbh Differential Revision: D2293367
-
Andrew Gallagher authored
Reviewed By: @yfeldblum Differential Revision: D2300047
-
Andrew Gallagher authored
Summary: Various fixes to get tests passing using buck's dev mode. Reviewed By: @yfeldblum Differential Revision: D2299981
-
Yedidya Feldblum authored
Summary: [Folly] futures::retrying. Reviewed By: @fugalh Differential Revision: D2201630
-
Ondrej Lehecka authored
Summary: enum iterators operator!= didn't use the iterator parameter for comparison because they assumed you only ever compare to end. Change the operator!= to look at the iterator parameter to check if it was end. Thrift generated code for reflection initializers for some types that weren't declared before definition because they were never called outside of the file. Marked those initializers as 'static'. Reviewed By: @alandau Differential Revision: D2284371
-
- 30 Jul, 2015 3 commits
-
-
Mark McDuff authored
Summary: This has come up a couple times, and the implementation is never nice. Just like we have thread-local storage, it will be useful to also have evb-local storage. Provides at pretty simple get/set/delete interface (see unittest). Reviewed By: @djwatson Differential Revision: D2203063
-
Nima Aghdaii authored
Summary: folly only accepts "Infinity" while deserializing but writes "infinity" when serializing. This means folly cannot deserialize what it serialized before. If we agree on this, we could update ##fbcode/common## as well: https://fburl.com/136793901 Reviewed By: @marcinpe Differential Revision: D2293627
-
Orvid King authored
Summary: This `typename` qualifier was unneeded, and MSVC errors if it's there, so remove it. Closes #275 Reviewed By: @yfeldblum Differential Revision: D2284056 Pulled By: @sgolemon
-
- 29 Jul, 2015 15 commits
-
-
Orvid King authored
Summary: MSVC doesn't support constructor priorities, so use the same code as OSX. Closes #272 Reviewed By: @yfeldblum Differential Revision: D2283998 Pulled By: @sgolemon
-
Orvid King authored
Summary: Support for this under mingw was already present, this just uses that for MSVC as well. Closes #273 Reviewed By: @yfeldblum Differential Revision: D2284007 Pulled By: @sgolemon
-
Orvid King authored
Summary: Specifically, MSVC doesn't define `std::__ostream_insert`, so just write to the stream instead. Closes #270 Reviewed By: @yfeldblum Differential Revision: D2283960 Pulled By: @sgolemon
-
Orvid King authored
Summary: Because MSVC doesn't support `__thread`, and `FOLLY_TLS` is already setup to use the MSVC syntax when needed. Closes #269 Reviewed By: @yfeldblum Differential Revision: D2283919 Pulled By: @sgolemon
-
Orvid King authored
Summary: This adds `asm_volatile_memory`, which goes along with the same style used by `asm_volatile_pause`. This also switches the two places in `RWSpinLock.h` that were using inline assembly for this to use the new functions instead. Closes #260 Reviewed By: @yfeldblum Differential Revision: D2283541 Pulled By: @sgolemon
-
Orvid King authored
Summary: This adds `FOLLY_ALIGNED` to `Portability.h`, and adjusts the places that were previously using the raw aligned attribute to use this instead. Closes #262 Reviewed By: @yfeldblum Differential Revision: D2283639 Pulled By: @sgolemon
-
Orvid King authored
Summary: With MSVC, `seedData.begin()` does not return a `void*`, so get a pointer to the data, and explicitly cast that to a `void*` instead. Closes #251 Reviewed By: @yfeldblum Differential Revision: D2282929 Pulled By: @sgolemon
-
Orvid King authored
Summary: This implements it via a function called on startup. The mechanism used is roughly equivelent of `__attribute__((__constructor__))` in that it doesn't have the ability to set the order of invokation. Closes #249 Reviewed By: @yfeldblum Differential Revision: D2282860 Pulled By: @sgolemon
-
Andrey Goder authored
Summary: Before this change you would get an error like: "Expected to get greater than or equal to1 for value 0" Now it add in the space correctly: "Expected to get greater than or equal to 1 for value 0" Reviewed By: @snarkmaster Differential Revision: D2288454
-
Tudor Bosman authored
Summary: exit() is evil, let's make it easier for programs that want to exit successfully. Reviewed By: @meyering Differential Revision: D2290201
-
Alexander Shaposhnikov authored
Summary: This diff adds partial specializations of folly::hasher for enum types, std::pair and std::tuple. We also restrict the specialization for folly::Range to POD value types. Reviewed By: @ot, @ddrcoder Differential Revision: D2285554
-
Yedidya Feldblum authored
Summary: [Folly] Fix Build: FOLLY_SSE and preprocessor floats. Float values for preprocessor symbols are not a thing. Reviewed By: @fyan Differential Revision: D2289436
-
Alexander Shaposhnikov authored
Summary: This diff fixes the helper template ReturnValue to enable using of applyTuple with constant refs. Reviewed By: @ot, @ddrcoder Differential Revision: D2284733
-
Sara Golemon authored
Summary: Also fix URLs hand-modified by D2219135 which didn't quite update them enough. Point them at the new repo. Reviewed By: @yfeldblum Differential Revision: D2285053
-
Orvid King authored
Summary: MSVC will just produce syntax errors if these are left where they currently are. GCC and LLVM support them in either location with the same meaning. Closes #267 Reviewed By: @yfeldblum Differential Revision: D2283889 Pulled By: @sgolemon
-
- 28 Jul, 2015 10 commits
-
-
Orvid King authored
Summary: Closes #266 Reviewed By: @yfeldblum Differential Revision: D2283774 Pulled By: @sgolemon
-
Orvid King authored
Summary: Closes #261 Reviewed By: @yfeldblum Differential Revision: D2283554 Pulled By: @sgolemon
-
Orvid King authored
Summary: This adds MSVC support for `FOLLY_DEPRECATED`. Closes #257 Reviewed By: @yfeldblum Differential Revision: D2283484 Pulled By: @sgolemon
-
Orvid King authored
Summary: This unifies ways of detecting SSE support into the FOLLY_SSE define which is a numeric value from 0 to 4.2 depending on detected level. This also adds a `#define` for `__extension__` which is used in folly, but is GCC specific. Closes #259 Reviewed By: @yfeldblum Differential Revision: D2283522 Pulled By: @sgolemon
-
Orvid King authored
Summary: This adds MSVC support for `FOLLY_FINAL` and `FOLLY_OVERRIDE`. Closes #258 Reviewed By: @yfeldblum Differential Revision: D2283502 Pulled By: @sgolemon
-
Orvid King authored
Summary: This adds MSVC support to the detection of FOLLY_HAS_RTTI. Closes #255 Reviewed By: @yfeldblum Differential Revision: D2283036 Pulled By: @sgolemon
-
Jason Rahman authored
Summary: Update the internal lambda to mutable to support mutable lambdas as parameters to Future::ensure() Reviewed By: @yfeldblum Differential Revision: D2286097
-
Orvid King authored
Summary: MSVC complains if these are not there. Closes #248 Reviewed By: @yfeldblum Differential Revision: D2282845 Pulled By: @sgolemon
-
Orvid King authored
Summary: MSVC supports the intrinsics used by it without any issue other changes, so just make sure the error doesn't trigger on MSVC. Closes #252 Reviewed By: @yfeldblum Differential Revision: D2282942 Pulled By: @sgolemon
-
Orvid King authored
Summary: This implements support for `asm_volatile_pause` and `asm_pause`, as defined in `Portability.h`, for MSVC. This is needed because MSVC x64 doesn't support inline assembly. Closes #254 Reviewed By: @yfeldblum Differential Revision: D2283006 Pulled By: @sgolemon
-
- 27 Jul, 2015 2 commits
-
-
Orvid King authored
Summary: Noticed because of a warning emitted by MSVC, this fixees the literal for `kLockedPtr_` to correctly be 64-bits under MSVC, rather than 32-bit. Closes #245 Reviewed By: @yfeldblum Differential Revision: D2282806 Pulled By: @sgolemon
-
Orvid King authored
Summary: MSVC defaults enum sizes to int, so explicitly use `size_t` as the base to have it correctly sized. Closes #246 Reviewed By: @yfeldblum Differential Revision: D2282816 Pulled By: @sgolemon
-