| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
Encapsulate the current_priority and real_priority fields of
the thread control block with a Thread_Priority_node struct.
Propagate modifications throughout the tree where the two
fields are directly accessed.
Updates #3359.
|
|
|
|
|
|
| |
POSIX mandates that an error code is returned and not -1 plus errno.
Update #2715.
|
|
|
|
|
|
|
| |
POSIX recommends ESRCH in case no thread exists for the specified
identifier.
Update #2713.
|
|
|
|
|
|
|
| |
Fix PR 2068:
Reproducable crashes occur when using pthreads and the capture engine
at the same time. 'pthread_create()' is the culprit. It creates a SCORE thread
and then calls Thread_Start( ) without disabling thread-dispatching.
|
| |
|
|
|
|
|
|
|
|
| |
PR 1895/cpukit
* posix/src/mqueuerecvsupp.c, posix/src/pthreadjoin.c,
score/src/coretodmsecstoticks.c, score/src/coretodusectoticks.c,
score/src/timespectoticks.c: Ensure time conversions to ticks do not
ignore partial tick and return 1 less than desired.
|
|
|
|
|
|
|
|
|
|
| |
PR 1855/cpukit
* posix/src/psignal.c, posix/src/psignalunblockthread.c,
posix/src/pthread.c, posix/src/pthreadjoin.c: Correct signal
processing during pthread_join. We are supposed to unblock the thread
waiting on a pthread_join(), dispatch the signal handler, account for
it potentially overwriting errno, and then have the thread return to
blocking within pthread_join().
|
|
|
|
|
|
|
|
| |
PR 1867/cpukit
* posix/src/pthreadexit.c, posix/src/pthreadjoin.c: Correct
implementation of pthread_exit() and pthread_join() to support the
case where a thread is joinable but calls pthread_exit() before a
thread has attempted to join.
|
|
|
|
|
|
|
|
|
| |
* posix/Makefile.am: Add posixtime.h.
* posix/src/clockgetres.c, posix/src/clockgettime.c,
posix/src/clocksettime.c:
Use CLOCK_PROCESS_CPUTIME_ID, CLOCK_THREAD_CPUTIME_ID.
Include posix/src/posixtime.h.
* posix/src/posixtime.h: New.
|
|
|
|
|
|
|
|
|
| |
PR 1759/cpukit
* posix/src/cancel.c, posix/src/pthreaddetach.c,
posix/src/pthreadequal.c, posix/src/pthreadgetschedparam.c,
posix/src/pthreadjoin.c, posix/src/pthreadkill.c,
posix/src/pthreadsetschedparam.c: Some POSIX pthread services did not
support using Classic API Task Ids.
|
|
|
|
|
| |
* posix/src/psignal.c: Back port patch from head to avoid derefencing
NULL.
|
|
|
|
|
|
| |
PR 1615/cpukit
* posix/src/keyrundestructors.c: Improved POSIX compliance. Now we may
have an unlimited number of iterations.
|
|
|
|
|
| |
* posix/include/aio.h, posix/src/aio_return.c:
Let aio_return return ssize_t (Mandated by POSIX).
|
|
|
|
|
|
| |
PR 1570/cpukit
* posix/src/semtimedwait.c: This routine is supposed to return -1/errno
NOT the status directly.
|
|
|
|
|
|
| |
PR 1453/cpukit
* posix/Makefile.am: newlib uses sysconf() for _CLOCKS_PER_SEC_ so
enable it even when POSIX threads are disabled.
|
|
|
|
|
| |
* posix/include/rtems/posix/pthread.h: Remove stray comment.
Work-around doxygen comment bug.
|
|
|
|
|
|
|
|
|
| |
* libnetworking/rtems/mkrootfs.h,
posix/include/rtems/posix/pthread.h,
score/include/rtems/score/coresem.h,
score/include/rtems/score/priority.h,
score/include/rtems/score/threadq.h,
score/include/rtems/score/timestamp.h: Move 'extern "C"'.
|
|
|
|
| |
* posix/include/rtems/posix/threadsup.h: Add extern "C".
|
|
|
|
| |
* posix/include/devctl.h: Move mal-placed @file.
|
|
|
|
|
| |
* posix/src/alarm.c, posix/src/psignal.c, posix/src/ualarm.c:
Moved watchdog control objects to reduce dependencies.
|
|
|
|
|
|
| |
* posix/src/pthread.c: Make default pthread_attr_t match the
conditionals in the version in newlib. This way it will always be
right.
|
| |
|
|
|
|
|
| |
* posix/include/sched.h: Remove.
* posix/Makefile.am: Remove include/sched.h.
|
| |
|
| |
|
|
|
|
|
| |
PR 1482
* posix/src/timersettime.c: Exit dispatching critical section.
|
| |
|
| |
|
|
|
|
|
|
|
| |
* posix/Makefile.am: Unconditionally build
posix/src/sigaddset.c, posix/src/sigdelset.c,
posix/src/sigfillset.c, posix/src/sigemptyset.c,
posix/src/sigismember.c.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* posix/include/rtems/posix/sigset.h: New (Split out from
posix/include/rtems/posix/psignal.h).
|
| |
|
|
|
|
| |
* posix/Makefile.am: Unconditionally build fork.c, vfork.c.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
* posix/src/alarm.c: If 0 seconds do not insert timer.
* rtems/src/regionextend.c: Eliminate warning. Use default else.
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/threadsup.h, posix/src/cancel.c,
posix/src/canceleval.c: Make psxcancel run again.
_POSIX_Thread_Exit() can be called on running thread or another
thread when it is cancelled.
|
|
|
|
|
|
|
|
| |
* posix/src/mqueuetimedreceive.c, posix/src/mqueuetimedsend.c,
posix/src/mutextimedlock.c, posix/src/prwlocktimedrdlock.c,
posix/src/prwlocktimedwrlock.c, posix/src/semtimedwait.c: Switch from
switch to if's because only one value needed to be tested. This
shrinks the code and makes it easier to do coverage analysis on.
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/psignal.h: Add extern for ualarm timer.
* posix/src/alarm.c, posix/src/ualarm.c: Change from switch to if since
many enumerated values have no action.
* posix/src/psignal.c: Initialize ualarm and alarm timers.
|
|
|
|
|
|
| |
* libmisc/capture/capture.c, posix/src/pthread.c, rtems/src/tasks.c,
score/include/rtems/score/userext.h: Eliminate use of deprecated
rtems_extension. Re-add prototype for _User_extensions_Add_API_set.
|
|
|
|
|
| |
* posix/include/rtems/posix/threadsup.h: Add no return atrribute to
_POSIX_Thread_Exit().
|
|
|
|
|
|
| |
* libcsupport/src/getpagesize.c, posix/Makefile.am: Eliminate one copy
of getpagesize() and make it return an int.
* posix/src/getpagesize.c: Removed.
|
|
|
|
|
| |
* posix/Makefile.am: Add getpagesize(). Now required by GNU Ada.
* posix/src/getpagesize.c: New file.
|
|
|
|
|
| |
* posix/src/nanosleep.c: Disable EINTR case when POSIX is disabled
because it cannot happen.
|
|
|
|
|
|
| |
* posix/Makefile.am, posix/src/clockgetres.c: Add clockgetres.c to set
of clock and delayt methods built when POSIX threads are disabled.
Ensure it builds when POSIX is disabled.
|