diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-09-03 22:09:56 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2010-09-03 22:15:52 +0200 |
commit | ec61e75b5228b941b62110752c57a145a42e8214 (patch) | |
tree | e5c02feb53ca94d82c9263e040ceb0e47f40eede /hurd | |
parent | 2de160b60e65efe83dba097574abd5454cb870a9 (diff) |
WAIT_DEBUG: permit to get function names instead of threads
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.
Diffstat (limited to 'hurd')
0 files changed, 0 insertions, 0 deletions