2 #ifndef __Aux_Task_RT_H_INCLUDED__
3 #define __Aux_Task_RT_H_INCLUDED__
9 #ifdef XENOMAI_SKIN_native
11 #include <native/task.h>
12 #include <native/queue.h>
15 #ifdef XENOMAI_SKIN_posix
22 #define AUX_RT_POOL_SIZE 500000
27 AuxTaskRT(std::string _name, std::function<
void()> callback){ create(_name, callback); }
28 AuxTaskRT(std::string _name, std::function<
void(std::string str)> callback){ create(_name, callback); }
29 AuxTaskRT(std::string _name, std::function<
void(
void* buf,
int size)> callback){ create(_name, callback); }
32 void create(std::string _name, std::function<
void()> callback,
int _priority =
BELA_AUDIO_PRIORITY-5);
33 void create(std::string _name, std::function<
void(std::string str)> callback,
int _priority =
BELA_AUDIO_PRIORITY-5);
34 void create(std::string _name, std::function<
void(
void* buf,
int size)> callback,
int _priority =
BELA_AUDIO_PRIORITY-5);
36 void schedule(
void* buf,
size_t size);
37 void schedule(
const char* str);
41 bool lShouldStop =
false;
45 #ifdef XENOMAI_SKIN_native
49 #ifdef XENOMAI_SKIN_posix
52 std::string queueName;
61 std::function<void()> empty_callback;
62 std::function<void(std::string str)> str_callback;
63 std::function<void(void* buf, int size)> buf_callback;
69 static void thread_func(
void* ptr);
#define BELA_AUDIO_PRIORITY
Definition: Bela.h:178
Definition: AuxTaskRT.h:24