[krbdev.mit.edu #3084] CVS Commit

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[krbdev.mit.edu #3084] CVS Commit

Greg Hudson via RT
Add run-time determination of whether thread support is available in the
support library.  Check lots of weak references, and call pthread_once a couple
of times, to distinguish a broken stub from the real thing.

* threads.c [HAVE_PRAGMA_WEAK_REF]: Declare pthread_{g,s}etspecific,
pthread_key_{create,delete}, pthread_{create,join} as weak references.
(krb5int_pthread_loaded, loaded_test_aux) [HAVE_PRAGMA_WEAK_REF]: New
(flag_pthread_loaded, loaded_test_once) [HAVE_PRAGMA_WEAK_REF]: New variables.
* libkrb5support.exports: Add krb5int_pthread_loaded.

To generate a diff of this commit:

        cvs diff -r1.32 -r1.33 krb5/src/util/support/ChangeLog
        cvs diff -r1.6 -r1.7 krb5/src/util/support/libkrb5support.exports
        cvs diff -r1.19 -r1.20 krb5/src/util/support/threads.c
krb5-bugs mailing list
[hidden email]