/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2010 Index Data
+ * Copyright (C) 1995-2011 Index Data
* See the file LICENSE for details.
*/
void yaz_cond_create(YAZ_COND *p)
{
- *p = (YAZ_COND) malloc(sizeof(**p));
#ifdef WIN32
+ *p = (YAZ_COND) malloc(sizeof(**p));
InitializeConditionVariable(&(*p)->cond);
#elif YAZ_POSIX_THREADS
+ *p = (YAZ_COND) malloc(sizeof(**p));
pthread_cond_init(&(*p)->cond, 0);
+#else
+ *p = 0;
#endif
}