aboutsummaryrefslogtreecommitdiffstats
path: root/jnlib/w32-pth.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2004-12-19 17:44:20 +0000
committerWerner Koch <[email protected]>2004-12-19 17:44:20 +0000
commit8f22f895e94d45755c99470eb76fd9fd508b5b5f (patch)
treec428f9546b0f65eeb0189214b1ebabeededd65ec /jnlib/w32-pth.h
parent* maperror.c (map_assuan_err_with_source): Oops, args were swapped. (diff)
downloadgnupg-8f22f895e94d45755c99470eb76fd9fd508b5b5f.tar.gz
gnupg-8f22f895e94d45755c99470eb76fd9fd508b5b5f.zip
* query.c (initialize_module_query):
* call-scd.c (initialize_module_call_scd): New. * w32-pth.c (pth_init): Enable debugging depending on env var. (pth_self): New. (pth_mutex_release, pth_mutex_acquire): Implemented directly using the W32 API.
Diffstat (limited to 'jnlib/w32-pth.h')
-rw-r--r--jnlib/w32-pth.h12
1 files changed, 5 insertions, 7 deletions
diff --git a/jnlib/w32-pth.h b/jnlib/w32-pth.h
index bcd82659c..5ef0ab240 100644
--- a/jnlib/w32-pth.h
+++ b/jnlib/w32-pth.h
@@ -53,7 +53,9 @@ enum
/* Mutex values. */
#define PTH_MUTEX_INITIALIZED (1<<0)
#define PTH_MUTEX_LOCKED (1<<1)
-#define PTH_MUTEX_INIT {PTH_MUTEX_INITIALIZED}
+
+/* Note: We can't do static initialization, thus we don't define the
+ initializer PTH_MUTEX_INIT. */
#define PTH_KEY_INIT (1<<0)
@@ -158,12 +160,7 @@ typedef void *pth_t;
/* The Mutex object. */
-struct pth_mutex_s
-{
- unsigned mx_state;
- W32_PTH_HANDLE_INTERNAL mx;
-};
-typedef struct pth_mutex_s pth_mutex_t;
+typedef W32_PTH_HANDLE_INTERNAL pth_mutex_t;
/* The Event object. */
@@ -214,6 +211,7 @@ int pth_attr_destroy (pth_attr_t hd);
int pth_attr_set (pth_attr_t hd, int field, ...);
pth_t pth_spawn (pth_attr_t hd, void *(*func)(void *), void *arg);
+pth_t pth_self (void);
int pth_join (pth_t hd, void **value);
int pth_abort (pth_t hd);
void pth_exit (void *value);