summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5592d04)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
{
return (unsigned long) pthread_self();
}
{
return (unsigned long) pthread_self();
}
+#elif defined(__CYGWIN__)
+#include <pthread.h>
+
+extern unsigned long pthread_getsequence_np(pthread_t *);
+
+static inline
+unsigned long urcu_get_thread_id(void)
+{
+ pthread_t thr = pthread_self();
+ return pthread_getsequence_np(&thr);
+}
+
#else
# warning "use pid as thread ID"
static inline
#else
# warning "use pid as thread ID"
static inline