Commit 1489cf96 authored by Stanislav Bohm's avatar Stanislav Bohm

FIX: Standard tasks are moved into loom namespace

parent e48f187b
......@@ -4,7 +4,7 @@
using namespace loom;
void ArrayMakeTask::start(loom::DataVector &inputs)
void ArrayMakeTask::start(DataVector &inputs)
{
size_t size = inputs.size();
auto items = std::make_unique<std::shared_ptr<Data>[]>(size);
......
......@@ -3,6 +3,8 @@
#include "libloom/taskinstance.h"
namespace loom {
class ArrayMakeTask : public loom::TaskInstance
{
public:
......@@ -10,4 +12,6 @@ public:
void start(loom::DataVector &inputs);
};
}
#endif // LIBLOOM_TASKS_ARRAYTASKS_H
......@@ -6,7 +6,7 @@
using namespace loom;
void GetTask::start(loom::DataVector &inputs)
void GetTask::start(DataVector &inputs)
{
assert(inputs.size() == 1);
assert(task->get_config().size() == sizeof(size_t));
......
......@@ -3,6 +3,8 @@
#include "libloom/taskinstance.h"
namespace loom {
class GetTask : public loom::TaskInstance
{
public:
......@@ -33,5 +35,6 @@ public:
void start(loom::DataVector &inputs);
};
}
#endif // LIBLOOM_TASKS_BASICTASKS_H
......@@ -3,6 +3,8 @@
#include "libloom/ttinstance.h"
namespace loom {
class ConstTask : public loom::TaskInstance
{
public:
......@@ -37,5 +39,6 @@ public:
void start(loom::DataVector &inputs);
};
}
#endif // LIBLOOM_TASKS_RAWDATATASKS_H
......@@ -3,6 +3,8 @@
#include "libloom/taskinstance.h"
namespace loom {
class RunTask : public loom::TaskInstance
{
public:
......@@ -22,11 +24,9 @@ private:
uv_write_t write_request;
static void _on_exit(uv_process_t *process, int64_t exit_status, int term_signal);
/*static void _on_read(uv_stream_t *stream, ssize_t nread, const uv_buf_t *buf);
static void _buf_alloc(uv_handle_t *handle, size_t suggested_size, uv_buf_t *buf);
static void _on_write(uv_write_t* req, int status);*/
static void _on_close(uv_handle_t *handle);
};
}
#endif // LIBLOOM_TASKS_RUNTASK_H
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