* getActions
* getRequest
This is because these functions doesn't check the elements is in or not.
So if there is no element, second parameter bool should be used to check.
Change-Id: I0aab79d3317a15d82ca21a40a65f29a2aed07fb3
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
return req.req_num; // return 1; if you test time_expire
}
return req.req_num; // return 1; if you test time_expire
}
-struct WMTrigger AppList::getRequest(unsigned req_num)
+struct WMTrigger AppList::getRequest(unsigned req_num, bool *found)
for (const auto &x : this->req_list)
{
if (req_num == x.req_num)
{
for (const auto &x : this->req_list)
{
if (req_num == x.req_num)
{
+ return WMTrigger{"", "", "", Task::TASK_INVALID};
-const vector<struct WMAction> &AppList::getActions(unsigned req_num)
+const vector<struct WMAction> &AppList::getActions(unsigned req_num, bool* found)
for (auto &x : this->req_list)
{
if (req_num == x.req_num)
{
for (auto &x : this->req_list)
{
if (req_num == x.req_num)
{
return x.sync_draw_req;
}
}
return x.sync_draw_req;
}
}
void next();
bool haveRequest() const;
void next();
bool haveRequest() const;
- struct WMTrigger getRequest(unsigned req_num);
- const std::vector<struct WMAction> &getActions(unsigned req_num);
+ struct WMTrigger getRequest(unsigned req_num, bool* found);
+ const std::vector<struct WMAction> &getActions(unsigned req_num, bool* found);
void clientDump();
void reqDump();
void clientDump();
void reqDump();
enum Task
{
TASK_ALLOCATE,
enum Task
{
TASK_ALLOCATE,
+ TASK_RELEASE,
+ TASK_INVALID