/* This is the real life implementation, using xbt_os_thread to be portable */
/* to windows and linux. */
-/* Copyright 2006,2007 Malek Cherier, Martin Quinson
- * All right reserved. */
+/* Copyright (c) 2007, 2008, 2009, 2010. The SimGrid Team.
+ * All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* KEEP IT IN SYNC WITH OS IMPLEMENTATION (both win and lin) */
#ifdef HAVE_PTHREAD_H
pthread_mutex_t m;
-#elif defined(WIN32)
+#elif defined(_XBT_WIN32)
CRITICAL_SECTION lock;
#endif
};
xbt_os_mutex_destroy((xbt_os_mutex_t) mutex);
}
-#ifdef WIN32
+#ifdef _XBT_WIN32
enum { /* KEEP IT IN SYNC WITH OS IMPLEM */
SIGNAL = 0,
BROADCAST = 1,
/* KEEP IT IN SYNC WITH OS IMPLEMENTATION (both win and lin) */
#ifdef HAVE_PTHREAD_H
pthread_cond_t c;
-#elif defined(WIN32)
+#elif defined(_XBT_WIN32)
HANDLE events[MAX_EVENTS];
unsigned int waiters_count; /* the number of waiters */