summaryrefslogtreecommitdiffstats
path: root/src/plugin.h
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-05-30 17:47:28 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2008-05-30 17:47:28 -0400
commit6c316e9ae234a97aa0cf6c240bcf38e35a53ae7c (patch)
treefa5027826c886239c335de26634a41aa23c213eb /src/plugin.h
parent0f7caba4f8826c71caceaa2970cc40313eec7747 (diff)
downloadslapi-nis-6c316e9ae234a97aa0cf6c240bcf38e35a53ae7c.tar.gz
slapi-nis-6c316e9ae234a97aa0cf6c240bcf38e35a53ae7c.tar.xz
slapi-nis-6c316e9ae234a97aa0cf6c240bcf38e35a53ae7c.zip
- sort out the threading start/stop functions, and add rwlock functions
Diffstat (limited to 'src/plugin.h')
-rw-r--r--src/plugin.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/plugin.h b/src/plugin.h
index bce8112..13c06c0 100644
--- a/src/plugin.h
+++ b/src/plugin.h
@@ -22,14 +22,10 @@
#ifndef plugin_h
#define plugin_h
+#include "wrap.h"
+
struct plugin_state {
-#ifdef USE_PTHREADS
- pthread_t tid;
-#elif defined(USE_NSPR_THREADS)
- PRThread *tid;
-#else
-#error "Don't know which threading model to use!"
-#endif
+ struct wrapped_thread *tid;
char *plugin_base;
Slapi_ComponentId *plugin_identity;
Slapi_PluginDesc *plugin_desc;