Commit Graph
22127 Commits
Author SHA1 Message Date
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
Joel Sherrill 230a0dcbb5 added some of the required functionality to pthread_setschedparam and
pthread_getschedparam.
1996-06-04 19:44:16 +00:00
Joel Sherrill 3ff4688cdd clean up pass 1996-06-04 19:20:53 +00:00
Joel Sherrill 6b067c4eda renamed the local variable attrp to the_attr in pthread_create 1996-06-04 19:15:28 +00:00
Joel Sherrill 95645a45e2 added test case for sched_get_priority_min, sched_get_priority_max,
and sched_rr_get_interval.
1996-06-04 19:06:30 +00:00
Joel Sherrill 24adc5bc3d changed sched_rr_get_interval to use the interval to timespec routine. 1996-06-04 19:05:16 +00:00
Joel Sherrill c48e0ee2b8 added interpretation of scheduling policy and parameter information to
pthread_create

initial implementation of get/set id routines

better argument checking on scheduler functions.
1996-06-04 16:15:59 +00:00
Joel Sherrill 12c77ab080 added scheduling policy and parameter information 1996-06-04 16:14:55 +00:00
Joel Sherrill 15974b65ea added basic test cases for pthread_self and pthread_equal 1996-06-04 14:32:21 +00:00
Joel Sherrill 8f85799226 added thread queue for list of threads waiting to join.
thread is added to join list in pthread_join.

all threads waiting on the join list are flushed when the thread exits.
1996-06-03 22:08:18 +00:00
Joel Sherrill 552a345d97 added thread queue for list of threads waiting to join. 1996-06-03 22:07:14 +00:00
Joel Sherrill 742b399c66 added priority ceiling support 1996-06-03 21:08:26 +00:00
Joel Sherrill f39b01e676 added an assert if a pthread_t is not the same size as an Objects_Id 1996-06-03 21:08:16 +00:00
Joel Sherrill e811d68705 deleted POSIX threads typedef masking Thread_Control
added initial version of pthread_detach and pthread_join
1996-06-03 21:06:51 +00:00
Joel Sherrill 4427a6492e deleted POSIX threads typedef masking Thread_Control 1996-06-03 21:06:12 +00:00
Joel Sherrill fa4fdd7dfd updated screen 1996-06-03 20:15:16 +00:00
Joel Sherrill e984c64589 added test code for return of remaining time from sleep(). 1996-06-03 18:59:59 +00:00
Joel Sherrill 685f4d65d4 sleep moved into newlibc.c so the sleep.o object would not be in the library.
This implementation of sleep is now only used when the POSIX API is not
configured.
1996-06-03 18:59:24 +00:00
Joel Sherrill e88b5894f3 added test case for nanosleep filling in the time remaining structure. 1996-06-03 18:28:30 +00:00
Joel Sherrill a26ee01ca4 nanosleep now fills in the time remaining structure. 1996-06-03 18:27:48 +00:00
Joel Sherrill 5b748a177d renamed _POSIX_Time_Spec_to_interval to _POSIX_Timespec_to_interval 1996-06-03 17:32:19 +00:00
Joel Sherrill 19962562df added test code for nanosleep and return code from sleep. 1996-06-03 16:30:44 +00:00
Joel Sherrill 5ff991e8a5 created ptimer.c and moved the timer_* routines out of time.c into ptimer.c 1996-06-03 16:29:59 +00:00
Joel Sherrill a38283590c added constant for seconds between posix epoch (1970) and rtems epoch (1988).
Formerly this constant was in the file src/time.c.
1996-06-03 16:29:35 +00:00
Joel Sherrill f6e6ed8464 changed so this file is usable from assembly files.
no longer uses efi332.h
1996-06-03 15:49:22 +00:00
Joel Sherrill 52a06419cc added ifdef for sunos 4.x since it does not have strtoul. 1996-06-03 15:47:45 +00:00
Joel Sherrill 5e7b6272fc renamed _TOD_Ticks_since_boot as _Watchdog_Ticks_since_boot so the Watchdog
Handler could timestamp the starting and stopping of timers.  Since
TOD is built on top of Watchdog, this avoided a circular dependency.
1996-05-31 23:27:45 +00:00
Joel Sherrill c238a2189d added checks to validate values passed to set attribute routines 1996-05-31 21:40:48 +00:00
Joel Sherrill f31da72ce4 fixed typo in merge of Eric Norum's patch 1996-05-31 20:57:17 +00:00
Joel Sherrill c832429dcd added nanoseconds per second constant 1996-05-31 19:02:13 +00:00
Joel Sherrill 1e665a5716 corrected minor problem in Eric Norum's changes in the bfffo macro. 1996-05-31 19:01:59 +00:00
Joel Sherrill e72d995a80 moved sleep() from psignal.c to unistd.c
implemented sigemptyset() sigfillset(), sigaddset(), sigdelset(), and
sigismember().

added checks for valid attribute values to some of the pthread_attr_t sets.
1996-05-31 19:01:26 +00:00
Joel Sherrill b927fba1c4 commented out cancel handlers related items. 1996-05-31 18:59:57 +00:00
Joel Sherrill 285af80408 moved attribute related constants into the rtems specific sys/types.h
file in newlib.
1996-05-31 18:59:31 +00:00
Joel Sherrill 9594cdbd4e added code to test clock and time related functionality. 1996-05-30 20:49:16 +00:00
Joel Sherrill 7c55e065f9 Added nanoseconds constant 1996-05-30 20:48:33 +00:00
Joel Sherrill 5600661d6a First cut at implementing time, clock_gettime, clock_settime, clock_getres,
sleep, and nanosleep.  Does not yet support per process clock, per thread
clock, interruptible sleep (sleep/nanosleep), or time remaining on nanosleep.
1996-05-30 20:48:10 +00:00
Joel Sherrill b169590e9a added dummy versions of __kill and __getpid which assert(0) so that
applications which use only the rtems api (i.e. not the posix api) will
link.
1996-05-30 20:34:46 +00:00
Joel Sherrill 53fd6e2979 Eric Norum sent in new versions of the inline assembly macros which
do not generate warnings for unitialized variables.
1996-05-30 19:29:01 +00:00
Joel Sherrill a96a713c57 tests now specify whether they are using rtems initialization tasks
or posix initialization threads
1996-05-30 14:01:33 +00:00
Joel Sherrill be1c11edab tests now specify whether using posix initialization threads table
or rtems initialization table in configuration table
1996-05-29 22:48:26 +00:00