summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/pthread.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-07-22Remove, moved to cpukit.Ralf Corsepius1-387/+0
2002-07-052002-07-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-2/+5
* include/rtems/posix/cancel.h, src/cancel.c, src/cancelrun.c, src/mqueue.c, src/pthread.c, src/semaphore.c, src/setcancelstate.c, src/setcanceltype.c, src/testcancel.c: Per PR164, corrected the behavior of thread cancellation and did some cleanup as a side-effect.
2002-07-012002-07-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill1-12/+14
* Mega patch merge to change the format of the object IDs to loosen the dependency between the SCORE and the various APIs. There was considerable work to simplify the object name management and it appears that the name_table field is no longer needed. This patch also includes the addition of the internal mutex which is currently only used to protect some types of allocation and deallocation. This significantly can reduce context switch latency under certain circumstances. In particular, some heap/region operations were O(n) and had dispatching disabled. This should help enormously. With this merge, the patch is not as clean as it should be. In particular, the documentation has not been modified to reflect the new object ID layout, the IDs in the test screens are not updated, and _Objects_Get_information needs to be a real routine not inlined. As part of this patch a lot of MP code for thread/proxy blocking was made conditional and cleaned up. * include/rtems/posix/key.h, src/cond.c, src/condinit.c, src/intr.c, src/key.c, src/keycreate.c, src/keydelete.c, src/killinfo.c, src/mqueue.c, src/mqueuecreatesupp.c, src/mutex.c, src/mutexinit.c, src/psignal.c, src/pthread.c, src/semaphore.c, src/semaphorecreatesupp.c: Modified as part of above.
2002-04-082002-04-08 Chris Johns <ccj@acm.org>Joel Sherrill1-0/+1
* Per PR142, make task switch extension its own list. * src/pthread.c (_POSIX_Threads_User_extensions): Reflect above.
2001-01-242001-01-24 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill1-0/+4
* configure.in: Add src/config.h * src/Makefile.am: Add INCLUDES += -I. to pickup config.h * src/.cvsignore: Add config.h and stamp-h * src/*.c: Add config.h support.
2000-06-12Merged from 4.5.0-beta3aJoel Sherrill1-2/+2
1999-10-25Patch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>Joel Sherrill1-0/+8
to initialize the pthread cancellation fields. This is a patch to _POSIX_Threads_Create_extension that fixes the problem.
1999-08-30Patch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca> to addJoel Sherrill1-1/+13
support for return codes from POSIX threads that do an implicit exit by returning from the bottom of the main function.
1999-05-07Patch from Jiri Gaisler <jgais@ws.estec.esa.nl> to allow stacksizeJoel Sherrill1-1/+1
of POSIX Init thread to be user configured.
1999-04-15Added include of rtems/posix/cancel.h.Joel Sherrill1-0/+1
1999-01-25Split most of POSIX Threads Manager into multiple files.Joel Sherrill1-957/+0
1998-06-18All task delete API level services were incorrectly assuming that theJoel Sherrill1-1/+5
task to be deleted was created via the same API (i.e. were of the object class created by this API). For example, a POSIX thread calling the rtems_task_delete(SELF) directive would incorrectly update the RTEMS object local pointer table. Jennifer discovered this when moving tests implemented in C using the Classic RTEMS API into a tree of Ada tests. The Ada tests were implicitly using POSIX services. This lead to some unexpected behavior.
1997-07-09Changed name from entry to thread_entry to be more compatible withJoel Sherrill1-1/+1
Ada interface where entry is a keyword.
1997-03-10Fixed bug where the initial detachstate was not being set properlyJoel Sherrill1-1/+1
1997-03-08Modified calls to _Thread_Change_priority to take a third argument. The newJoel Sherrill1-3/+7
argument indicates whether the task is to be placed at the head or tail of its priority fifo when it is lowering its own priority. POSIX normally follows the RTEMS API conventions but GNAT expects that all lowering of a task's priority by the task itself will result in being placed at the head of the priority FIFO. Normally, this would only occur as the result of lose of inherited priority.
1996-09-30changed stack size of posix initialization threads to double the minimumJoel Sherrill1-0/+3
stack size so more of acvc would pass.
1996-09-08moved PTHREAD_MINIMUM_STACK_SIZE from pthread.c to pthread.h so it would beJoel Sherrill1-1/+0
visible to other files.
1996-09-05default thread attributes: default value for inheritsched changed fromJoel Sherrill1-5/+25
explicit to inherit scheduler to be consistent with FSU pthreads for gnat. _POSIX_Threads_Create_extension: now inherit signal blocked mask from creator if the new thread is a posix thread. _POSIX_Threads_Initialize_user_threads: make sure posix initialization threads start with a useful priority. If they inherit the priority of the creating thread, they will end up at the same priority as the idle thread. Since the idle thread does not yield, they will not run.
1996-08-23pthread_create: changed EINVAL for no more threads back to EAGAINMark Johannes1-20/+21
1996-08-15fixed typo for NOTSUP -> ENOTSUPMark Johannes1-13/+12
1996-08-14commented of ENOTSUP until fixed in newlibMark Johannes1-0/+1
1996-08-07sporadic server debugged and working. This required minor changes in allJoel Sherrill1-20/+40
sporadic server related routines.
1996-08-06_POSIX_Threads_Delete_extension: reorder to eliminate use of local pointerJoel Sherrill1-6/+9
variable before set. pthread_join: using local variable so user can pass NULL pointer as argument
1996-08-01added page delimiters for comment blocksJoel Sherrill1-4/+9
1996-06-13basic test cases for kill() and alarm().Joel Sherrill1-0/+13
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-11first attempt at adding algorithm to select the thread which willJoel Sherrill1-0/+9
receive a process-directed signal.
1996-06-11tested blocking a signal, sending it to self, then unblocking it.Joel Sherrill1-1/+1
make minimum stack size for posix threads double that of the cpu's minimum requirement.
1996-06-11Basic signal functionality appears to work. pthread_kill() can successfullyJoel Sherrill1-1/+2
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-10first attempt at the routine which vectors signals.Joel Sherrill1-1/+3
1996-06-07key destructor is now run at correct point in pthread_exit() sequence andJoel Sherrill1-64/+67
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-06Made the implementation of pthread_equal conditional on RTEMS_DEBUG. IfJoel Sherrill1-0/+10
RTEMS is built for debug, then every possible effort is made to validate the two ids. Otherwise, a simple comparison is performed.
1996-06-06completed pthread_setschedparam.Joel Sherrill1-73/+130
1996-06-06added Sporadic Server supportJoel Sherrill1-27/+109
1996-06-05renamed Schedule to schedparam in the posix api control information.Joel Sherrill1-11/+22
reviewed the interpretation of most of the thread attributes.
1996-06-04make PTHREAD_SCOPE_SYSTEM an unsupported value for contentionscope.Joel Sherrill1-2/+11
1996-06-04made sure _Thread_Enable_dispatch is not invoked in casesJoel Sherrill1-5/+0
where _Objects_Get failed
1996-06-04made sure routines which called _Objects_Get also calledJoel Sherrill1-10/+25
_Thread_Enable_dispatch.
1996-06-04added some of the required functionality to pthread_setschedparam andJoel Sherrill1-31/+71
pthread_getschedparam.
1996-06-04renamed the local variable attrp to the_attr in pthread_createJoel Sherrill1-11/+11
1996-06-04added interpretation of scheduling policy and parameter information toJoel Sherrill1-5/+30
pthread_create initial implementation of get/set id routines better argument checking on scheduler functions.
1996-06-03added thread queue for list of threads waiting to join.Joel Sherrill1-9/+33
thread is added to join list in pthread_join. all threads waiting on the join list are flushed when the thread exits.
1996-06-03deleted POSIX threads typedef masking Thread_ControlJoel Sherrill1-6/+79
added initial version of pthread_detach and pthread_join
1996-05-31added checks to validate values passed to set attribute routinesJoel Sherrill1-18/+52
1996-05-31moved sleep() from psignal.c to unistd.cJoel Sherrill1-0/+32
implemented sigemptyset() sigfillset(), sigaddset(), sigdelset(), and sigismember(). added checks for valid attribute values to some of the pthread_attr_t sets.
1996-05-29posix initialization threads table was misnamed "posix initializationJoel Sherrill1-23/+24
tasks table"
1996-05-29comment clean upJoel Sherrill1-2/+3
1996-05-29added pthread_exitJoel Sherrill1-8/+45
first posix thread ran
1996-05-29first cut at pthread_createJoel Sherrill1-4/+72
1996-05-29addressed minimum stack size attribute.Joel Sherrill1-1/+4
There is a potential problem if setting PTHREAD_STACK_MIN to 0 does not work with all applications since it is in limit.h over in newlib. There is a potential build order issue with newlib needing to know the rtems cpu dependent stack size minimum.
1996-05-29removed all ifdef's on NOT_IMPLEMENTED.Joel Sherrill1-7/+21