#ifndef XBT_THREAD_H
#define XBT_THREAD_H
-#include "xbt/function_types.h"
-#include "xbt/misc.h" /* SG_BEGIN_DECL */
+#include "simgrid/forward.h"
+#include <xbt/function_types.h>
+#include <xbt/misc.h> /* SG_BEGIN_DECL */
SG_BEGIN_DECL()
/** @brief Thread condition data type (opaque object)
* @hideinitializer
*/
+#ifdef __cplusplus
+typedef simgrid::kernel::activity::ConditionVariableImpl* xbt_cond_t;
+#else
typedef struct s_smx_cond_* xbt_cond_t;
+#endif
/** @brief Creates a condition variable */
XBT_PUBLIC xbt_cond_t xbt_cond_init(void);