diff options
| author | Ken Raeburn <raeburn@mit.edu> | 2004-05-01 01:29:44 +0000 |
|---|---|---|
| committer | Ken Raeburn <raeburn@mit.edu> | 2004-05-01 01:29:44 +0000 |
| commit | 2ec29866c30896237f10a9b24cfcf4d4c9921905 (patch) | |
| tree | 437c88a74d3af0d613d86815cb6ab1464d77e417 /src/include/ChangeLog | |
| parent | b936eda945085e010bc56029f21b321e0f6efac4 (diff) | |
| download | krb5-2ec29866c30896237f10a9b24cfcf4d4c9921905.tar.gz krb5-2ec29866c30896237f10a9b24cfcf4d4c9921905.tar.xz krb5-2ec29866c30896237f10a9b24cfcf4d4c9921905.zip | |
Update mutex debug code to be somewhat compatible with multi-threaded
execution. It won't be as useful in single-threaded programs for detecting
bugs in the mutex handling for now, though.
* k5-thread.h (k5_mutex_debug_check_init, k5_mutex_debug_update_loc): New
macros.
(k5_mutex_debug_lock, k5_mutex_debug_unlock): Use them.
(k5_mutex_lock, k5_mutex_unlock) [ENABLE_THREADS && DEBUG_THREADS]: Use them
instead of k5_mutex_debug_lock and k5_mutex_debug_unlock.
(enum k5_mutex_debug_states): New enum.
(K5_MUTEX_DEBUG_LOCKED, K5_MUTEX_DEBUG_UNLOCKED): Change to enumerator values.
(k5_mutex_debug_info): Use the enum type. Reorder fields.
(K5_MUTEX_DEBUG_INITIALIZER): Update for new field order.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16293 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include/ChangeLog')
| -rw-r--r-- | src/include/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/ChangeLog b/src/include/ChangeLog index 3e75c77f6..147ad22a3 100644 --- a/src/include/ChangeLog +++ b/src/include/ChangeLog @@ -1,5 +1,17 @@ 2004-04-30 Ken Raeburn <raeburn@mit.edu> + * k5-thread.h (k5_mutex_debug_check_init, + k5_mutex_debug_update_loc): New macros. + (k5_mutex_debug_lock, k5_mutex_debug_unlock): Use them. + (k5_mutex_lock, k5_mutex_unlock) [ENABLE_THREADS && + DEBUG_THREADS]: Use them instead of k5_mutex_debug_lock and + k5_mutex_debug_unlock. + (enum k5_mutex_debug_states): New enum. + (K5_MUTEX_DEBUG_LOCKED, K5_MUTEX_DEBUG_UNLOCKED): Change to + enumerator values. + (k5_mutex_debug_info): Use the enum type. Reorder fields. + (K5_MUTEX_DEBUG_INITIALIZER): Update for new field order. + * k5-int.h: Include k5-thread.h. (struct krb5_rc_st): Add a mutex. |
