Diff for /libaitsched/inc/defs.h between versions 1.13.2.5 and 1.17.10.1

version 1.13.2.5, 2014/06/05 22:15:59 version 1.17.10.1, 2023/02/23 17:13:01
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2014Copyright 2004 - 2023
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 82  SUCH DAMAGE. Line 82  SUCH DAMAGE.
 #define __unused                __attribute__((unused))  #define __unused                __attribute__((unused))
 #endif  #endif
   
   #ifndef __ELWIX
   #define e_malloc        malloc
   #define e_calloc        calloc
   #define e_realloc       realloc
   #define e_free          free
   #define e_strdup        strdup
   #endif
   
 #define MAX_TASK_MISS           12  #define MAX_TASK_MISS           12
   
 #define LOGERR  { \  #define LOGERR  { \
Line 94  SUCH DAMAGE. Line 102  SUCH DAMAGE.
 #define pthread_mutex_unlock(x)  #define pthread_mutex_unlock(x)
 #endif  #endif
   
   #define SCHED_QTRYLOCK(r, x)            pthread_mutex_trylock(&(r)->root_mtx[(x)])
 #define SCHED_QLOCK(r, x)               pthread_mutex_lock(&(r)->root_mtx[(x)])  #define SCHED_QLOCK(r, x)               pthread_mutex_lock(&(r)->root_mtx[(x)])
 #define SCHED_QUNLOCK(r, x)             pthread_mutex_unlock(&(r)->root_mtx[(x)])  #define SCHED_QUNLOCK(r, x)             pthread_mutex_unlock(&(r)->root_mtx[(x)])
   
Line 203  transit_task2unuse(sched_task_t * __restrict t, sched_ Line 212  transit_task2unuse(sched_task_t * __restrict t, sched_
         TASK_UNLOCK(t);          TASK_UNLOCK(t);
         TASK_TYPE(t) = taskUNUSE;          TASK_TYPE(t) = taskUNUSE;
         insert_task_to(t, &(TASK_ROOT(t))->root_unuse);          insert_task_to(t, &(TASK_ROOT(t))->root_unuse);
   }
   
   static inline void
   transit_task2ready(sched_task_t * __restrict t, sched_queue_t * __restrict q)
   {
           remove_task_from(t, q);
   
           t->task_type = taskREADY;
           insert_task_to(t, &(TASK_ROOT(t))->root_ready);
 }  }
   
   

Removed from v.1.13.2.5  
changed lines
  Added in v.1.17.10.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>