Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
move the cmake files in tools/cmake
[simgrid.git] / tools / cmake / test_prog / prog_mutex_timedlock.c
diff --git a/tools/cmake/test_prog/prog_mutex_timedlock.c b/tools/cmake/test_prog/prog_mutex_timedlock.c
new file mode 100644 (file)
index 0000000..60dd8fe
--- /dev/null
@@ -0,0 +1,15 @@
+/* Copyright (c) 2010-2011, 2013-2014. 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. */
+
+#include <pthread.h>
+
+int main(void)
+{
+  pthread_mutex_t s;
+  const struct timespec t;
+  sem_timedlock(&s, &t);
+  return 0;
+}