Commit 1bfe10c2 authored by neverlord's avatar neverlord

benchmark update

parent 5ccd3a08
......@@ -9,13 +9,10 @@
#include "utility.hpp"
using std::cerr;
using std::cout;
using std::endl;
using std::int64_t;
using std::uint32_t;
struct spread { int value; };
struct result { uint32_t value; };
......@@ -24,8 +21,6 @@ using namespace Theron;
struct testee : Actor
{
typedef struct { Address arg0; } Parameters;
Address m_parent;
bool m_first_result_received;
uint32_t m_first_result;
......@@ -58,11 +53,13 @@ struct testee : Actor
}
else
{
Send(result{m_first_result + arg.value}, m_parent);
m_children.clear();
Send(result{m_first_result + arg.value}, m_parent);
}
}
typedef struct { Address arg0; } Parameters;
testee(Parameters const& p) : m_parent(p.arg0), m_first_result_received(false)
{
RegisterHandler(this, &testee::spread_handler);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment