diff options
author | Marcus Brinkmann <[email protected]> | 2009-11-04 18:13:44 +0000 |
---|---|---|
committer | Marcus Brinkmann <[email protected]> | 2009-11-04 18:13:44 +0000 |
commit | 49693e8e45ec9233f779e8f1d8a30f54b683c6ff (patch) | |
tree | 0492f347800597011ed17cbf9e478bd476e7cfbe /src/ath-pth.c | |
parent | Adjust for changed assuan_register_command. (diff) | |
download | gpgme-49693e8e45ec9233f779e8f1d8a30f54b683c6ff.tar.gz gpgme-49693e8e45ec9233f779e8f1d8a30f54b683c6ff.zip |
2009-11-04 Marcus Brinkmann <[email protected]>
* ath.h (ath_self): New prototype. Include <stdint.h>
* ath.c, ath-pth.c, ath-pthread.c (ath_self): New function.
* debug.h: Rewrite most macros to beautify debug output.
(_gpgme_debug_buffer): Remove tagname and tag argument.
(_gpgme_debug_frame_begin, _gpgme_debug_frame_end): New prototypes.
* debug.c: Include <time.h>. Don't include assuan.h.
(frame_nr, FRAME_NR): New thread-specific variable and macro.
(debug_init): Do not initialize assuan. Call _gpgme_debug after
initialization instead using printf directly.
(_gpgme_debug): Do not call debug_init (we now ensure proper
initialization by user). Add timestamp and thread/process ID.
(_gpgme_debug_buffer): Do not take tagname and tag argument.
(_gpgme_debug_frame_begin, _gpgme_debug_frame_end): New functions.
* version.c (gpgme_check_version_internal, gpgme_check_version):
Fix debug string. Do not initialize assuan.
* posix-io.c (get_max_fds): Use 0 not NULL (nicer debug output).
Diffstat (limited to '')
-rw-r--r-- | src/ath-pth.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ath-pth.c b/src/ath-pth.c index 4c883a34..3c7bd54b 100644 --- a/src/ath-pth.c +++ b/src/ath-pth.c @@ -34,6 +34,14 @@ /* The lock we take while checking for lazy lock initialization. */ static pth_mutex_t check_init_lock = PTH_MUTEX_INIT; + +uintptr_t +ath_self (void) +{ + return (uintptr_t) pth_self (); +} + + /* Initialize the mutex *PRIV. If JUST_CHECK is true, only do this if it is not already initialized. */ static int |