feat(third_party): add oatpp,googltest,benchmark
All checks were successful
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 1m7s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m15s
sm-rpc / build (Debug, host.gcc) (push) Successful in 1m4s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 1m16s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 1m34s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 1m33s
sm-rpc / build (Release, host.gcc) (push) Successful in 1m23s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 1m30s
All checks were successful
sm-rpc / build (Debug, aarch64-linux-gnu) (push) Successful in 1m7s
sm-rpc / build (Debug, arm-linux-gnueabihf) (push) Successful in 1m15s
sm-rpc / build (Debug, host.gcc) (push) Successful in 1m4s
sm-rpc / build (Debug, mipsel-linux-gnu) (push) Successful in 1m16s
sm-rpc / build (Release, aarch64-linux-gnu) (push) Successful in 1m34s
sm-rpc / build (Release, arm-linux-gnueabihf) (push) Successful in 1m33s
sm-rpc / build (Release, host.gcc) (push) Successful in 1m23s
sm-rpc / build (Release, mipsel-linux-gnu) (push) Successful in 1m30s
This commit is contained in:
49
third_party/oatpp/changelog/1.4.0.md
vendored
Normal file
49
third_party/oatpp/changelog/1.4.0.md
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
# Oat++ 1.4.0
|
||||
|
||||
Previous release - [1.3.0](1.3.0.md)
|
||||
|
||||
Feel free to ask questions - [Chat on Gitter!](https://gitter.im/oatpp-framework/Lobby)
|
||||
|
||||
Contents:
|
||||
|
||||
- [URL Encoder And Decoder](#url-encoder-and-decoder)
|
||||
- [Introduce async::ConditionVariable](#async-condition-variable)
|
||||
|
||||
|
||||
## URL Encoder And Decoder
|
||||
|
||||
```cpp
|
||||
#include "oatpp/encoding/Url.hpp"
|
||||
|
||||
...
|
||||
|
||||
oatpp::String data = "Hello URL-Encoder!!!";
|
||||
|
||||
oatpp::encoding::Url::Config config;
|
||||
auto encoded = oatpp::encoding::Url::encode(data, config);
|
||||
auto decoded = oatpp::encoding::Url::decode(encoded);
|
||||
|
||||
OATPP_ASSERT(decoded == data)
|
||||
```
|
||||
**Note**: Oat++ does NOT automatically decode URL and its parameters on endpoint hit.
|
||||
|
||||
## Async Condition Variable
|
||||
|
||||
```cpp
|
||||
#include "oatpp/core/async/ConditionVariable.hpp"
|
||||
|
||||
...
|
||||
|
||||
oatpp::async::Lock* m_lock;
|
||||
oatpp::async::ConditionVariable* m_cv;
|
||||
|
||||
...
|
||||
|
||||
Action act() override {
|
||||
return m_cv->waitFor(m_lock, // async::Lock
|
||||
[this]{return m_resource->counter == 100;}, // condition
|
||||
std::chrono::seconds(5)) // timeout
|
||||
.next(finish());
|
||||
}
|
||||
...
|
||||
```
|
Reference in New Issue
Block a user