aboutsummaryrefslogtreecommitdiff
path: root/libthreads/cprocs.c
Commit message (Collapse)AuthorAgeFilesLines
* libthreads: RemoveSamuel Thibault2020-11-111-1214/+0
| | | | | | | | | | | | | | | libthreads is most probably completely broken, and not the long-term road anyway. * config.make.in (VERSIONING): Remove. * configure.ac: Test for pfinet assembly compatibility instead of libthreads assembly compatibility. Do not set VERSIONING. * libthreads: Remove directory. * Makefile (lib-subdirs): Remove libthreads. * doc/hurd.texi (Threads Library): Rename references to libthreads into libpthread. * release/rfloppy.copy: Do not objcopy lib/libthreads.so. * release/tool-Makefile (rfloppy-solib): Remove libthreads.
* Use our own variant of 'assert' and 'assert_perror'.Justus Winter2017-08-051-2/+2
| | | | | Our variants print stack traces on failures. This will make locating errors much easier.
* Remove unsused variablesMiguel Figueiredo2013-06-011-4/+0
| | | | * libthreads/cprocs.c : Remove unsused variables.
* TLS support for libthreads.Samuel Thibault2011-10-201-1/+2
| | | | | | | | | | | * libthreads/cprocs.c (cproc_create): Call into glibc to allocate static TLS block. * libthreads/cthread_internals.h (tcbhead_t): New structure; as in glibc. (cproc_setup): Take TCB parameter. (_dl_allocate_tls): Declare; from glibc. * libthreads/alpha/thread.c (cproc_setup): Compile-time warning for missing TLS support. * libthreads/i386/thread.c (cproc_setup): Imlement TLS support.
* 2002-05-28 Roland McGrath <roland@frob.com>Roland McGrath2002-05-291-2/+16
| | | | * cprocs.c (cproc_block): Can't be static, called from cancel-cond.c.
* 2002-05-26 Roland McGrath <roland@frob.com>Roland McGrath2002-05-271-117/+53
| | | | | | | | | | | | | Changes merged from CMU MK83a version: * cthreads.h, options.h: Various cleanups. * call.c, cthread_data.c, sync.c, mig_support.c: Likewise. * i386/cthreads.h, i386/thread.c, i386/lock.s: Likewise. * cthread_internals.h: Add decls for internal functions. (struct cproc): Use vm_offset_t for stack_base and stack_size members. Use natural_t for context member. * cprocs.c: Use prototypes for all defns. * cthreads.c: Likewise. (cthread_exit): Cast any_t to integer_t before int.
* 2002-05-08 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-2/+7
| | | | | | * cthread_internals.h: int -> void * for `busy' member. * cprocs.c (cthread_mach_msg): Don't cast to int when setting it. * cprocs.c (cthread_mag_active): Likewise.
* 2002-05-07 Roland McGrath <roland@frob.com>Roland McGrath2002-05-081-1/+12
| | | | * cprocs.c (cproc_list_lock): Declare type as spin_lock_t.
* 2001-03-31 Roland McGrath <roland@frob.com>Roland McGrath2001-03-311-26/+31
| | | | | | | | | | * cthreads.h: Fix obsolescent #endif syntax. * cthread_internals.h: Likewise. * cancel-cond.c: Likewise. * stack.c: Likewise. * cthreads.c: Likewise. * cprocs.c: Likewise. * call.c: Likewise.
* 2000-01-10 Mark Kettenis <kettenis@gnu.org>Mark Kettenis2000-01-101-0/+9
| | | | * cprocs.c: Include <assert.h>
* 2000-01-09 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath2000-01-091-27/+38
| | | | | | | * cprocs.c (cproc_alloc): Initialize P->wired and P->msg here (code from cthread_wire). (cthread_wire): Reduce to just an assert, cthreads always wired. (chtread_unwire): Abort if called.
* 1998-07-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath1998-07-201-34/+39
| | | | | | | * i386/csw.S (cproc_prepare): Take address of cthread_body as third arg, so we don't have to deal with PIC magic to find its address without producing a text reloc. * cprocs.c (cproc_create): Pass &cthread_body to cproc_prepare.
* Mon Nov 18 16:36:56 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell1996-11-181-1/+5
| | | | * cprocs.c (cproc_create): Cast CHILD in assignment.
* (condition_unimplies): Take address of (*impp)->next in assignment toMichael I. Bushnell1995-12-061-1/+4
| | | | IMPP on loop step instruction.
* Include hurd/threadvar.h.Roland McGrath1995-09-221-0/+4
|
* Repair typos.Michael I. Bushnell1995-08-301-3/+9
|
* (cond_signal): If this condition has implications, see if one of themMichael I. Bushnell1995-08-301-0/+52
| | | | | | needs to be signalled when we have no waiters. (cond_broadcast): Signal the implications list too. (condition_implies, condition_unimplies): New functions.
* (mutex_lock_solid, mutex_unlock_solid): Renamed to __*.Roland McGrath1995-04-041-9/+8
| | | | | (_cthread_mutex_lock_routine, _cthread_mutex_unlock_routine): Variables removed.
* entered into RCSRoland McGrath1994-05-191-0/+5
|
* Formerly cprocs.c.~2~Roland McGrath1994-05-051-5/+31
|
* Initial revisionMichael I. Bushnell1992-10-061-0/+1122