A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upgrade XBT_ATTRIB_DEPRECATED_v326 -> v327.
[simgrid.git]
/
include
/
xbt
/
synchro.h
diff --git
a/include/xbt/synchro.h
b/include/xbt/synchro.h
index
6970239
..
96d7556
100644
(file)
--- a/
include/xbt/synchro.h
+++ b/
include/xbt/synchro.h
@@
-27,7
+27,11
@@
SG_BEGIN_DECL()
/** @brief Thread mutex data type (opaque object)
* @hideinitializer
*/
/** @brief Thread mutex data type (opaque object)
* @hideinitializer
*/
+#ifdef __cplusplus
+typedef simgrid::kernel::activity::MutexImpl* xbt_mutex_t;
+#else
typedef struct s_smx_mutex_* xbt_mutex_t;
typedef struct s_smx_mutex_* xbt_mutex_t;
+#endif
/** @brief Creates a new mutex variable */
XBT_PUBLIC xbt_mutex_t xbt_mutex_init(void);
/** @brief Creates a new mutex variable */
XBT_PUBLIC xbt_mutex_t xbt_mutex_init(void);