Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove features marked with XBT_ATTRIB_DEPRECATED_v325.
[simgrid.git] / include / simgrid / mutex.h
1 /* Copyright (c) 2019. The SimGrid Team. All rights reserved.          */
2
3 /* This program is free software; you can redistribute it and/or modify it
4  * under the terms of the license (GNU LGPL) which comes with this package. */
5
6 #ifndef INCLUDE_SIMGRID_MUTEX_H_
7 #define INCLUDE_SIMGRID_MUTEX_H_
8
9 #include <simgrid/forward.h>
10
11 /* C interface */
12 SG_BEGIN_DECL()
13 XBT_PUBLIC sg_mutex_t sg_mutex_init();
14 XBT_PUBLIC void sg_mutex_lock(sg_mutex_t mutex);
15 XBT_PUBLIC void sg_mutex_unlock(sg_mutex_t mutex);
16 XBT_PUBLIC int sg_mutex_try_lock(sg_mutex_t mutex);
17 XBT_PUBLIC void sg_mutex_destroy(sg_mutex_t mutex);
18
19 SG_END_DECL()
20
21 #endif /* INCLUDE_SIMGRID_MUTEX_H_ */