2 #ifndef __AuxTaskNonRT_H_INCLUDED__
3 #define __AuxTaskNonRT_H_INCLUDED__
5 #ifdef XENOMAI_SKIN_native
7 #include <native/task.h>
8 #include <native/pipe.h>
11 #ifdef XENOMAI_SKIN_posix
18 #define AUX_MAX_BUFFER_SIZE 500000
23 AuxTaskNonRT(std::string _name, std::function<
void()> callback){ create(_name, callback); }
24 AuxTaskNonRT(std::string _name, std::function<
void(std::string str)> callback){ create(_name, callback); }
25 AuxTaskNonRT(std::string _name, std::function<
void(
void* buf,
int size)> callback){ create(_name, callback); }
28 void create(std::string _name, std::function<
void()> callback);
29 void create(std::string _name, std::function<
void(std::string str)> callback);
30 void create(std::string _name, std::function<
void(
void* buf,
int size)> callback);
32 int schedule(
const void* ptr,
size_t size);
33 int schedule(
const char* str);
37 bool lShouldStop =
false;
41 #ifdef XENOMAI_SKIN_native
45 #ifdef XENOMAI_SKIN_posix
57 std::function<void()> empty_callback;
58 std::function<void(std::string str)> str_callback;
59 std::function<void(void* buf, int size)> buf_callback;
65 static void thread_func(
void* ptr);
Definition: AuxTaskNonRT.h:20