* by counting up threads starting at 3, we seem to get what top shows in the LWPID...
[citadel.git] / citadel / include / ctdl_module.h
index 0db356a6ff458356849d397f99929e0e7081265d..21550ed872be44eaa9f0487e28b72a4ffbb17cbc 100644 (file)
@@ -185,6 +185,7 @@ void CtdlThreadAllocTSD(void);
 #define MYCURSORS      (((ThreadTSD*)pthread_getspecific(ThreadKey))->cursors)
 #define MYTID          (((ThreadTSD*)pthread_getspecific(ThreadKey))->tid)
 #define CT             (((ThreadTSD*)pthread_getspecific(ThreadKey))->self)
+#define CTP            ((ThreadTSD*)pthread_getspecific(ThreadKey))
 
 /** return the current context list as an array and do it in a safe manner
  * The returned data is a copy so only reading is useful