Пример #1
0
void cleanup_module(void)
{
	int i;

	stop_rt_timer();
	rt_rwl_delete(&rwl);
	for (i = 0; i < NTASKS; i++) {
		printk("TASK %d LOOPS COUNT AT EXIT %d\n", i + 1, extcnt[i]);
		rt_task_delete(&thread[i]);
	}
	kfree(thread);
}
RWLockImplLxrt38::~RWLockImplLxrt38()
{
#ifdef STRICT_LXRT_CHECKS
  if (!icl_core::os::isThisLxrtTask())
  {
    PRINTF("RWLockImplLxrt38::~RWLockImplLxrt38: Called from a Linux task!\n");
    return;
  }
#endif
  if (m_rwlock)
  {
    rt_rwl_delete(m_rwlock);
    m_rwlock = NULL;
  }
}