* k5-thread.h (k5_os_nothread_mutex_finish_init, k5_os_nothread_mutex_init,
authorKen Raeburn <raeburn@mit.edu>
Fri, 13 Aug 2004 02:41:34 +0000 (02:41 +0000)
committerKen Raeburn <raeburn@mit.edu>
Fri, 13 Aug 2004 02:41:34 +0000 (02:41 +0000)
commit4286789a65f3b8005434a4e8feee89a787643e76
treef9923d04dc02415b180d84d73a0c324d5479f6de
parent1e75280b15cfe2081c2feba52deba1e17b208380
* k5-thread.h (k5_os_nothread_mutex_finish_init, k5_os_nothread_mutex_init,
k5_os_nothread_mutex_destroy, k5_os_nothread_mutex_lock,
k5_os_nothread_mutex_unlock) [!DEBUG_THREADS]: Replace macros with inline
functions, to gain type checking and eliminate gratuitous compiler warnings.
(k5_pthread_assert_unlocked, k5_pthread_assert_locked): Likewise.
(k5_os_mutex_finish_init) [HAVE_PTHREAD && !USE_PTHREAD_LOCK_ONLY_IF_LOADED]:
Likewise.
(return_after_yield): New inline function.
(k5_os_mutex_lock) [HAVE_PTHREAD]: Change back to a macro, calling
return_after_yield.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16661 dc483132-0cff-0310-8789-dd5450dbe970
src/include/ChangeLog
src/include/k5-thread.h