X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/22a86e9300bc489906b09bad0e6be79588c4b41c..ba5e8b528ff29715f5a9008137e117a9fbcc24b0:/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 index 0000000000..60dd8fecfa --- /dev/null +++ b/tools/cmake/test_prog/prog_mutex_timedlock.c @@ -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 + +int main(void) +{ + pthread_mutex_t s; + const struct timespec t; + sem_timedlock(&s, &t); + return 0; +}