summaryrefslogtreecommitdiff
path: root/libthreads/cthreads.h
AgeCommit message (Collapse)Author
2010-09-03Enable debugging in mutex_try_lock tooSamuel Thibault
* libthreads/cthreads.h (mutex_try_lock): Call WAIT_SET_DEBUG when spin_try_lock succeeds.
2010-09-03WAIT_DEBUG: permit to get function names instead of threadsSamuel Thibault
From the idea of Sergio Lopez. * libthreads/cthreads.h [WAIT_FUNC_DEBUG] (mutex): Replace struct cthread *holder field with const char *fname. (WAIT_CLEAR_DEBUG, WAIT_SET_DEBUG): New macros which clear and set fname or holder according to WAIT_FUNC_DEBUG and WAIT_DEBUG being defined. (mutex_init, mutex_unlock): Call WAIT_CLEAR_DEBUG in all cases instead of setting the `holder' field according to WAIT_DEBUG being defined (mutex_lock): Call WAIT_SET_DEBUG in all cases instead of setting the `holder' field according to WAIT_DEBUG being defined.
2002-06-012002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* cthreads.h: Do not define WAIT_DEBUG to affect inlines. * options.h: Not here either.
2002-05-282002-05-28 Roland McGrath <roland@frob.com>Roland McGrath
* cthreads.h (hurd_condition_wait, condition_implies, condition_unimplies): Restore decls lost in merge. (mutex_clear): Define as mutex_init instead of bogon (lost in merge).
2002-05-272002-05-26 Roland McGrath <roland@frob.com>Roland McGrath
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-082002-05-07 Roland McGrath <roland@frob.com>Roland McGrath
* cthreads.h (cthread_sp): Cast to vm_address_t instead of int. (mutex_unlock): Cast to void * instead of int.
2001-03-312001-03-31 Roland McGrath <roland@frob.com>Roland McGrath
* 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.
1999-06-131999-06-13 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* cthreads.h (MACRO_BEGIN, MACRO_END): #undef before unconditionally redefining. Use GCC extension for statement expression with value 0.
1999-05-301999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* cthreads.h (mutex_clear): Change again, to call mutex_init.
1999-05-291999-05-29 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* cthreads.h (mutex_clear): Change from syntax error to no-op (with warning avoidance).
1996-05-04[lint] (NEVER): Spurious global variable removed.Roland McGrath
[!lint] (NEVER): Useless macro removed.
1996-01-24Use prototypes for functions of zero args.Roland McGrath
1995-09-13(CONDITION_INITIALIZER): Provide initial zero for IMPLICATIONS member.Michael I. Bushnell
(condition_init): Bother initializing NAME and IMPLICATIONS members.
1995-08-30(condition_implies, condition_unimplies): New functions.Michael I. Bushnell
(struct condition): New member `implications'. (cond_imp): New structure. (cond_signal): Return int now. (condition_broadcast): Always call cond_broadcast if this condition has implications. (condition_signal): Always call cond_signal if this condition has implications.
1995-08-30(hurd_condition_wait): Provide declaration.Michael I. Bushnell
1995-07-18Reverse previous change.Michael I. Bushnell
1995-07-17(struct cthread): Delete member `catch'.Michael I. Bushnell
1995-04-04(mutex_lock, mutex_unlock): Use __ names for *_solid.Roland McGrath
1994-05-05entered into RCSRoland McGrath
1994-05-04Formerly cthreads.h.~3~Roland McGrath
1993-03-17Formerly cthreads.h.~2~Michael I. Bushnell
1992-10-06Initial revisionMichael I. Bushnell