Ignore:
Timestamp:
11/17/16 11:57:29 (7 years ago)
Author:
Sanahuja Guillaume
Message:

aded semaphore
resolved bug for rt_printf before thread is started

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/FrameworkManager_impl.cpp

    r67 r118  
    3737#ifdef __XENO__
    3838#include <native/task.h>
     39#include <rtdk.h>
    3940#endif
    4041
     
    119120  sa.sa_flags = SA_SIGINFO;
    120121  sigaction(SIGDEBUG, &sa, NULL);
    121 #else
     122#else //SIGDEBUG
    122123  signal(SIGXCPU, warn_upon_switch);
    123 #endif
    124 
     124#endif //SIGDEBUG
    125125  string task_name = "Framework_" + name;
     126
     127  // Perform auto-init of rt_print buffers if the task doesn't do so
     128  rt_print_auto_init(1);
     129  // Initialise the rt_print buffer for this task explicitly
     130  rt_print_init(512, task_name.c_str());
     131
    126132  int status = rt_task_shadow(NULL, task_name.c_str(), 10, 0);
    127133  if (status != 0) {
Note: See TracChangeset for help on using the changeset viewer.