-
Notifications
You must be signed in to change notification settings - Fork 25
[Sdk 927] Request Module added #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
request module
one deadlock remains
mutext shared ptr added
Unit tests fixed
ArtursKadikis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mutex changes should be in a separate PR.
"request builder" functionality should be integrated into "request module"
ArtursKadikis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix "debugReturnStateOfRQ".
src/request_module.cpp
Outdated
| RequestModule::~RequestModule() { impl.reset(); } | ||
|
|
||
| void RequestModule::addRequestToQueue(const std::map<std::string, std::string> &data) { | ||
| if (impl->_configuration->requestQueueThreshold == impl->request_queue.size()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be ">="
include/countly.hpp
Outdated
| * It is currently added as a temporary workaround. | ||
| */ | ||
| inline void processRQDebug() { processRequestQueue(); } | ||
| inline void processRQDebug() { requestModule->processQueue(mutex); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be null
include/countly.hpp
Outdated
| inline void processRQDebug() { requestModule->processQueue(mutex); } | ||
|
|
||
| inline void clearRequestQueue() { request_queue.clear(); } | ||
| inline void clearRequestQueue() { requestModule->clearRequestQueue(); } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can be null
include/countly/request_module.hpp
Outdated
| #include "countly/logger_module.hpp" | ||
| #include "countly/request_builder.hpp" | ||
|
|
||
| #ifdef _WIN32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move this to the same place as other defs
…into sdk-927 # Conflicts: # include/countly.hpp # src/countly.cpp
No description provided.