(krb5_is_thread_safe): return TRUE is the library was compiled with

multithreading support. If not, application must global lock the
library, it it uses threads that call kerberos functions at the same
time.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14470 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-01-05 09:41:36 +00:00
parent 590645de88
commit 802103911a

View File

@@ -644,3 +644,13 @@ krb5_get_fcache_version(krb5_context context, int *version)
*version = context->fcache_vno;
return 0;
}
krb5_boolean KRB5_LIB_FUNCTION
krb5_is_thread_safe(void)
{
#ifdef ENABLE_PTHREAD_SUPPORT
return TRUE;
#else
return FALSE;
#endif
}