summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authorSergei Golubchik <sergii@pisem.net>2011-10-21 23:07:13 +0200
committerSergei Golubchik <sergii@pisem.net>2011-10-21 23:07:13 +0200
commitaeaa112edbf40f17c7978642539443544241185d (patch)
tree97faebc5269e23af60a451907271bfa11643f353 /include/my_pthread.h
parentb3223453f7e4398ff0f55471ac7dc4aecf2caf8d (diff)
downloadmariadb-git-aeaa112edbf40f17c7978642539443544241185d.tar.gz
fixes for windows
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 9f851db4209..21c85c633d6 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -91,21 +91,6 @@ struct timespec {
long tv_nsec;
};
-
-/**
- Compare two timespec structs.
-
- @retval 1 If TS1 ends after TS2.
-
- @retval 0 If TS1 is equal to TS2.
-
- @retval -1 If TS1 ends before TS2.
-*/
-#define cmp_timespec(TS1, TS2) \
- ((TS1.tv.i64 > TS2.tv.i64) ? 1 : \
- ((TS1.tv.i64 < TS2.tv.i64) ? -1 : 0))
-
-
int win_pthread_mutex_trylock(pthread_mutex_t *mutex);
int pthread_create(pthread_t *, const pthread_attr_t *, pthread_handler, void *);
int pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr);