45 :
icl_core::thread::Thread(
"LoggingThread", priority),
46 m_message_count(message_count),
47 m_sleep_time_us(sleep_time_us)
53 PRINTF(
"test_icl_core_logging(LoggingThread): If you see this on the console then I am not hard real-time!\n");
62 for (
size_t i = 0; i < m_message_count; ++i)
65 if (m_sleep_time_us > 0)
77 int main(
int argc,
char *argv[])
87 icl_core::ThreadPriority priority = icl_core::config::getDefault<icl_core::ThreadPriority>(
"/TestLogging/ThreadPriority", 0);
88 size_t message_count = icl_core::config::getDefault<size_t>(
"/TestLogging/MessageCount", 10);
89 uint32_t sleep_time_us = icl_core::config::getDefault<uint32_t>(
"/TestLogging/SleepTimeUS", 1000);
98 for (
size_t i = 0; i < message_count; ++i)
101 if (sleep_time_us > 0)
#define LOGGING_INFO_C(streamname, classname, arg)
bool initialize(int &argc, char *argv[], bool remove_read_arguments)
#define LOGGING_INFO(streamname, arg)
static LoggingManager & instance()
Base header file for the configuration framework.
Contains a system independet PRINTF macro.
#define LOGGING_WARNING_C(streamname, classname, arg)
int usleep(unsigned long useconds)
#define LOGGING_DEBUG_C(streamname, classname, arg)
ThreadStream & endl(ThreadStream &stream)
LoggingThread(icl_core::ThreadPriority priority, size_t message_count, uint32_t sleep_time_us)
void addParameter(const ConfigParameter ¶meter)
Contains global LXRT functions.
int main(int argc, char *argv[])
#define LOGGING_SCOPED_TIMER_INFO(streamname, description)
Contains Interface base classes and base types.
Contains icl_core::thread::Thread.
#define LOGGING_TRACE_C(streamname, classname, arg)
#define LOGGING_ERROR_C(streamname, classname, arg)