Commit Graph

408 Commits

Author SHA1 Message Date
Joel Sherrill
b85649c47b basic test cases for kill() and alarm().
kill() in particular needs more test cases for full coverage.  The search
for a thread interested in this signal has a lot of paths.
1996-06-13 16:42:21 +00:00
Joel Sherrill
7fc3029a59 added prototype for manager initialization routine. 1996-06-13 16:39:28 +00:00
Joel Sherrill
1094754fd9 new files 1996-06-12 22:52:13 +00:00
Joel Sherrill
da4b6e88ed use exit() from newlib by default. 1996-06-12 22:50:03 +00:00
Joel Sherrill
2e0ebd11ad added initialization of posix signal manager. 1996-06-12 22:49:33 +00:00
Joel Sherrill
281ad526b6 basic kill() which send a signal to pthread_self() appears to work. 1996-06-12 22:49:14 +00:00
Joel Sherrill
4a1bc34b8f added waiting for signal state. 1996-06-12 17:45:34 +00:00
Joel Sherrill
2291b71654 initial implementation of blocking signal routines -- sigwait, sigwaitinfo,
sigtimedwait, sigsuspend, and pause.
1996-06-12 17:45:01 +00:00
Joel Sherrill
937808f500 added comment to make sure we add unblock of thread 1996-06-11 22:55:39 +00:00
Joel Sherrill
ea1a5bef17 first attempt at adding algorithm to select the thread which will
receive a process-directed signal.
1996-06-11 22:52:42 +00:00
Joel Sherrill
20d099eabd deleted field for signals_global_pending. 1996-06-11 22:51:59 +00:00
Joel Sherrill
699fe08a25 Added test case which blocks a signal, sees what signals are pending, sends
that same signal to the executing thread, sees what is pending, then unblocks
that signal so the handler can execute.
1996-06-11 20:46:13 +00:00
Joel Sherrill
c8f5ab5d2e tested blocking a signal, sending it to self, then unblocking it.
make minimum stack size for posix threads double that of the cpu's minimum
requirement.
1996-06-11 20:43:55 +00:00
Joel Sherrill
fb39f191da modified to test pthread_kill() to self and pthread_kill() to a blocked
thread.  nanosleep() can be interrupted and return the time remaining.
1996-06-11 16:04:25 +00:00
Joel Sherrill
12aeff91fe Interruptible by signals state was added to the STATES_BLOCKED set. It
can not be part of the locally blocked set since it by itself does not
indicate that the thread is blocked.
1996-06-11 16:03:15 +00:00
Joel Sherrill
98ed15e30f Basic signal functionality appears to work. pthread_kill() can successfully
send signals to the current thread or to another blocked thread.  nanosleep()
can be interrupted by a signal and return the time remaining.

Post switch extension added to dispatch posix signal handlers.
1996-06-11 16:01:37 +00:00
Joel Sherrill
d0baf81b2f new file. 1996-06-11 16:00:06 +00:00
Joel Sherrill
494740cb7f added psignal.h 1996-06-10 21:04:14 +00:00
Joel Sherrill
1ba858d7ea new files.
This test does a basic checkout of signals with a thread-directed signal
(pthread_kill()) used to interrupt a nanosleep().
1996-06-10 20:51:31 +00:00
Joel Sherrill
1e608b0f5a new file 1996-06-10 20:49:21 +00:00
Joel Sherrill
893103c3c2 moved the time macros to pmacros.h. 1996-06-10 20:49:08 +00:00
Joel Sherrill
0f63c8627e added code to _Thread_Clear_state to check if the state was not currently set. 1996-06-10 20:47:56 +00:00
Joel Sherrill
fdec30ba62 first attempt at the routine which vectors signals. 1996-06-10 20:47:23 +00:00
Joel Sherrill
d03f192a21 *** empty log message *** 1996-06-10 20:46:36 +00:00
Joel Sherrill
81daab3e6b added states for "join at exit" and "interruptible by signal" 1996-06-07 15:22:19 +00:00
Joel Sherrill
05ce4e097a changed code which set errno and then returned -1 to use the macro
set_errno_and_return_minus_one.
1996-06-07 15:21:27 +00:00
Joel Sherrill
fa03f083a3 new file 1996-06-07 15:20:55 +00:00
Joel Sherrill
895efd9edc key destructor is now run at correct point in pthread_exit() sequence and
should be correct for other apis as well.

missing page numbers added on some references.

initial attempt at sig_procmask() and pthread_sigmask().
1996-06-07 13:54:23 +00:00
Joel Sherrill
fce2e9dab3 in newlib now 1996-06-06 21:27:33 +00:00
Joel Sherrill
0a359a7af5 added include of <sched.h> and fixed warnings 1996-06-06 19:16:20 +00:00
Joel Sherrill
782bdfd125 Removed assert's from routines which return the error ENOSYS. 1996-06-06 19:09:27 +00:00
Joel Sherrill
09b1f1ad2c patch from Tony Bennett on the ifdef for O_NDELAY 1996-06-06 17:57:39 +00:00
Joel Sherrill
e754dd1df9 process oriented scheduler routines now return ENOSYS 1996-06-06 17:54:37 +00:00
Joel Sherrill
5d9cb7e00f removed timer_getoverrun() since it was also in ptimer.c 1996-06-06 17:24:44 +00:00
Joel Sherrill
0207c55825 Made the implementation of pthread_equal conditional on RTEMS_DEBUG. If
RTEMS is built for debug, then every possible effort is made to validate
the two ids.  Otherwise, a simple comparison is performed.
1996-06-06 15:36:18 +00:00
Joel Sherrill
65a5c1b192 completed pthread_setschedparam. 1996-06-06 15:32:49 +00:00
Joel Sherrill
ebd40c0638 Added Sporadic Server support to posix threads which required changes
in the core to support multiple algorithms to handle cpu time budgetting
which resulted in a change to the calling sequence of _Thread_Initialize.
1996-06-06 14:55:08 +00:00
Joel Sherrill
2f200c7e64 Added Sporadic Server support to posix threads which required changes
in the core to support multiple algorithms to handle cpu time budgetting
which resulted in a change to the calling sequence of _Thread_Initialize.

Makde _Context_Switch_necessary volatile.
1996-06-06 14:55:01 +00:00
Joel Sherrill
624133c6f4 added Sporadic Server support 1996-06-06 14:53:12 +00:00
Joel Sherrill
ed10d76219 added Sporadic_timer field to support sporadic server 1996-06-06 14:52:53 +00:00
Joel Sherrill
7aa4671d91 added cpu_time_budget field to Thread_Control and removed the global variable
_Thread_Ticks_remaining_in_timeslice.
1996-06-05 21:12:06 +00:00
Joel Sherrill
71698522fe fixed spacing 1996-06-05 18:34:48 +00:00
Joel Sherrill
23305a25c3 added support for the api providing the thread stack area 1996-06-05 14:46:04 +00:00
Joel Sherrill
98162c35fb added boolean to indicate whether or not the stack area was provided
by the api.
1996-06-05 14:45:45 +00:00
Joel Sherrill
9b4e549729 renamed Schedule to schedparam in the posix api control information.
reviewed the interpretation of most of the thread attributes.
1996-06-05 14:45:05 +00:00
Joel Sherrill
7189a40297 added comments to to document the definition of posix priority
and how it corresponds to rtems core priority.
1996-06-05 14:44:03 +00:00
Joel Sherrill
09c1e31dc3 added comments to priority.h to document the definition of posix priority
and how it corresponds to rtems core priority.

Schedule was renamed schedparam
1996-06-05 14:43:52 +00:00
Joel Sherrill
2c207d1f84 make PTHREAD_SCOPE_SYSTEM an unsupported value for contentionscope. 1996-06-04 20:36:37 +00:00
Joel Sherrill
65911c32fb made sure _Thread_Enable_dispatch is not invoked in cases
where _Objects_Get failed
1996-06-04 19:50:15 +00:00
Joel Sherrill
56bd4a361b made sure routines which called _Objects_Get also called
_Thread_Enable_dispatch.
1996-06-04 19:48:08 +00:00