summaryrefslogtreecommitdiffstats
path: root/c/src/exec/posix/src/pthread.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove, moved to cpukit.Ralf Corsepius2002-07-221-387/+0
|
* 2002-07-05 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-07-051-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-01 Joel Sherrill <joel@OARcorp.com>Joel Sherrill2002-07-011-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-08 Chris Johns <ccj@acm.org>Joel Sherrill2002-04-081-0/+1
| | | | | * Per PR142, make task switch extension its own list. * src/pthread.c (_POSIX_Threads_User_extensions): Reflect above.
* 2001-01-24 Ralf Corsepius <corsepiu@faw.uni-ulm.de>Joel Sherrill2001-01-241-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.
* Merged from 4.5.0-beta3aJoel Sherrill2000-06-121-2/+2
|
* Patch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca>Joel Sherrill1999-10-251-0/+8
| | | | | to initialize the pthread cancellation fields. This is a patch to _POSIX_Threads_Create_extension that fixes the problem.
* Patch from Charles-Antoine Gauthier <charles.gauthier@iit.nrc.ca> to addJoel Sherrill1999-08-301-1/+13
| | | | | support for return codes from POSIX threads that do an implicit exit by returning from the bottom of the main function.
* Patch from Jiri Gaisler <jgais@ws.estec.esa.nl> to allow stacksizeJoel Sherrill1999-05-071-1/+1
| | | | of POSIX Init thread to be user configured.
* Added include of rtems/posix/cancel.h.Joel Sherrill1999-04-151-0/+1
|
* Split most of POSIX Threads Manager into multiple files.Joel Sherrill1999-01-251-957/+0
|
* All task delete API level services were incorrectly assuming that theJoel Sherrill1998-06-181-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.
* Changed name from entry to thread_entry to be more compatible withJoel Sherrill1997-07-091-1/+1
| | | | Ada interface where entry is a keyword.
* Fixed bug where the initial detachstate was not being set properlyJoel Sherrill1997-03-101-1/+1
|
* Modified calls to _Thread_Change_priority to take a third argument. The newJoel Sherrill1997-03-081-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.
* changed stack size of posix initialization threads to double the minimumJoel Sherrill1996-09-301-0/+3
| | | | stack size so more of acvc would pass.
* moved PTHREAD_MINIMUM_STACK_SIZE from pthread.c to pthread.h so it would beJoel Sherrill1996-09-081-1/+0
| | | | visible to other files.
* default thread attributes: default value for inheritsched changed fromJoel Sherrill1996-09-051-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.
* pthread_create: changed EINVAL for no more threads back to EAGAINMark Johannes1996-08-231-20/+21
|
* fixed typo for NOTSUP -> ENOTSUPMark Johannes1996-08-151-13/+12
|
* commented of ENOTSUP until fixed in newlibMark Johannes1996-08-141-0/+1
|
* sporadic server debugged and working. This required minor changes in allJoel Sherrill1996-08-071-20/+40
| | | | sporadic server related routines.
* _POSIX_Threads_Delete_extension: reorder to eliminate use of local pointerJoel Sherrill1996-08-061-6/+9
| | | | | | variable before set. pthread_join: using local variable so user can pass NULL pointer as argument
* added page delimiters for comment blocksJoel Sherrill1996-08-011-4/+9
|
* basic test cases for kill() and alarm().Joel Sherrill1996-06-131-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.
* first attempt at adding algorithm to select the thread which willJoel Sherrill1996-06-111-0/+9
| | | | receive a process-directed signal.
* tested blocking a signal, sending it to self, then unblocking it.Joel Sherrill1996-06-111-1/+1
| | | | | make minimum stack size for posix threads double that of the cpu's minimum requirement.
* Basic signal functionality appears to work. pthread_kill() can successfullyJoel Sherrill1996-06-111-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.
* first attempt at the routine which vectors signals.Joel Sherrill1996-06-101-1/+3
|
* key destructor is now run at correct point in pthread_exit() sequence andJoel Sherrill1996-06-071-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().
* Made the implementation of pthread_equal conditional on RTEMS_DEBUG. IfJoel Sherrill1996-06-061-0/+10
| | | | | RTEMS is built for debug, then every possible effort is made to validate the two ids. Otherwise, a simple comparison is performed.
* completed pthread_setschedparam.Joel Sherrill1996-06-061-73/+130
|
* added Sporadic Server supportJoel Sherrill1996-06-061-27/+109
|
* renamed Schedule to schedparam in the posix api control information.Joel Sherrill1996-06-051-11/+22
| | | | reviewed the interpretation of most of the thread attributes.
* make PTHREAD_SCOPE_SYSTEM an unsupported value for contentionscope.Joel Sherrill1996-06-041-2/+11
|
* made sure _Thread_Enable_dispatch is not invoked in casesJoel Sherrill1996-06-041-5/+0
| | | | where _Objects_Get failed
* made sure routines which called _Objects_Get also calledJoel Sherrill1996-06-041-10/+25
| | | | _Thread_Enable_dispatch.
* added some of the required functionality to pthread_setschedparam andJoel Sherrill1996-06-041-31/+71
| | | | pthread_getschedparam.
* renamed the local variable attrp to the_attr in pthread_createJoel Sherrill1996-06-041-11/+11
|
* added interpretation of scheduling policy and parameter information toJoel Sherrill1996-06-041-5/+30
| | | | | | | | pthread_create initial implementation of get/set id routines better argument checking on scheduler functions.
* added thread queue for list of threads waiting to join.Joel Sherrill1996-06-031-9/+33
| | | | | | thread is added to join list in pthread_join. all threads waiting on the join list are flushed when the thread exits.
* deleted POSIX threads typedef masking Thread_ControlJoel Sherrill1996-06-031-6/+79
| | | | added initial version of pthread_detach and pthread_join
* added checks to validate values passed to set attribute routinesJoel Sherrill1996-05-311-18/+52
|
* moved sleep() from psignal.c to unistd.cJoel Sherrill1996-05-311-0/+32
| | | | | | | implemented sigemptyset() sigfillset(), sigaddset(), sigdelset(), and sigismember(). added checks for valid attribute values to some of the pthread_attr_t sets.
* posix initialization threads table was misnamed "posix initializationJoel Sherrill1996-05-291-23/+24
| | | | tasks table"
* comment clean upJoel Sherrill1996-05-291-2/+3
|
* added pthread_exitJoel Sherrill1996-05-291-8/+45
| | | | first posix thread ran
* first cut at pthread_createJoel Sherrill1996-05-291-4/+72
|
* addressed minimum stack size attribute.Joel Sherrill1996-05-291-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.
* removed all ifdef's on NOT_IMPLEMENTED.Joel Sherrill1996-05-291-7/+21
|