version 1.22.8.2, 2014/01/28 12:14:20
|
version 1.24.2.2, 2014/05/21 21:55:11
|
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, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 | Copyright 2004 - 2014 |
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 146 _sched_threadWrapper(sched_task_t *t)
|
Line 146 _sched_threadWrapper(sched_task_t *t)
|
} |
} |
#endif |
#endif |
|
|
#if defined(HAVE_TIMER_CREATE) && defined(HAVE_TIMER_SETTIME) | #if defined(HAVE_TIMER_CREATE) && defined(HAVE_TIMER_SETTIME) && defined(HAVE_TIMER_DELETE) |
void * |
void * |
_sched_rtcWrapper(sched_task_t *t) |
_sched_rtcWrapper(sched_task_t *t) |
{ |
{ |
Line 1330 schedThread(sched_root_task_t * __restrict root, sched
|
Line 1330 schedThread(sched_root_task_t * __restrict root, sched
|
TASK_DATLEN(task) = opt_dlen; |
TASK_DATLEN(task) = opt_dlen; |
|
|
pthread_attr_init(&attr); |
pthread_attr_init(&attr); |
pthread_attr_setdetachstate(&attr, PTHREAD_DETACHED); | pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED); |
if (ss && (errno = pthread_attr_setstacksize(&attr, ss))) { |
if (ss && (errno = pthread_attr_setstacksize(&attr, ss))) { |
LOGERR; |
LOGERR; |
pthread_attr_destroy(&attr); |
pthread_attr_destroy(&attr); |
Line 1342 schedThread(sched_root_task_t * __restrict root, sched
|
Line 1342 schedThread(sched_root_task_t * __restrict root, sched
|
return sched_unuseTask(task); |
return sched_unuseTask(task); |
} else |
} else |
TASK_FLAG(task) = ss; |
TASK_FLAG(task) = ss; |
if ((errno = pthread_attr_setguardsize(&attr, ss))) { | |
LOGERR; | |
pthread_attr_destroy(&attr); | |
return sched_unuseTask(task); | |
} | |
#ifdef SCHED_RR |
#ifdef SCHED_RR |
pthread_attr_setschedpolicy(&attr, SCHED_RR); |
pthread_attr_setschedpolicy(&attr, SCHED_RR); |
#else |
#else |
Line 1381 sched_task_t *
|
Line 1377 sched_task_t *
|
schedRTC(sched_root_task_t * __restrict root, sched_task_func_t func, void *arg, struct timespec ts, |
schedRTC(sched_root_task_t * __restrict root, sched_task_func_t func, void *arg, struct timespec ts, |
void *opt_data, size_t opt_dlen) |
void *opt_data, size_t opt_dlen) |
{ |
{ |
#if defined(HAVE_TIMER_CREATE) && defined(HAVE_TIMER_SETTIME) | #if defined(HAVE_TIMER_CREATE) && defined(HAVE_TIMER_SETTIME) && defined(HAVE_TIMER_DELETE) |
sched_task_t *task; |
sched_task_t *task; |
void *ptr; |
void *ptr; |
|
|