|
version 1.28, 2015/07/22 19:50:45
|
version 1.29, 2022/10/17 22:45:06
|
|
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 - 2015 | Copyright 2004 - 2022 |
| 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 215 schedInit(void ** __restrict data, size_t datlen)
|
Line 215 schedInit(void ** __restrict data, size_t datlen)
|
| register int i; |
register int i; |
| #endif |
#endif |
| |
|
| root = malloc(sizeof(sched_root_task_t)); | root = e_malloc(sizeof(sched_root_task_t)); |
| if (!root) { |
if (!root) { |
| LOGERR; |
LOGERR; |
| } else { |
} else { |
|
Line 233 schedInit(void ** __restrict data, size_t datlen)
|
Line 233 schedInit(void ** __restrict data, size_t datlen)
|
| LOGERR; |
LOGERR; |
| while (i) |
while (i) |
| pthread_mutex_destroy(&root->root_mtx[--i]); |
pthread_mutex_destroy(&root->root_mtx[--i]); |
| free(root); | e_free(root); |
| return NULL; |
return NULL; |
| } |
} |
| |
|
|
Line 373 schedEnd(sched_root_task_t ** __restrict root)
|
Line 373 schedEnd(sched_root_task_t ** __restrict root)
|
| SCHED_QLOCK((*root), taskUNUSE); |
SCHED_QLOCK((*root), taskUNUSE); |
| TAILQ_FOREACH_SAFE(task, &(*root)->root_unuse, task_node, tmp) { |
TAILQ_FOREACH_SAFE(task, &(*root)->root_unuse, task_node, tmp) { |
| TAILQ_REMOVE(&(*root)->root_unuse, task, task_node); |
TAILQ_REMOVE(&(*root)->root_unuse, task, task_node); |
| free(task); | e_free(task); |
| } |
} |
| SCHED_QUNLOCK((*root), taskUNUSE); |
SCHED_QUNLOCK((*root), taskUNUSE); |
| |
|
|
Line 388 schedEnd(sched_root_task_t ** __restrict root)
|
Line 388 schedEnd(sched_root_task_t ** __restrict root)
|
| } |
} |
| #endif |
#endif |
| |
|
| free(*root); | e_free(*root); |
| *root = NULL; |
*root = NULL; |
| return 0; |
return 0; |
| } |
} |