Convert gmxfio to C++
[alexxy/gromacs.git] / src / external / thread_mpi / include / thread_mpi / lock.h
index f30e8bf740e594b1f879e7f96479d67dbcb0df6c..84a9794fdd2c0418896292335337db70ed32495f 100644 (file)
 #include "wait.h"
 #include "atomic.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** Fast (possibly busy-wait-based) lock type
  *
  *  This lock type forms an intermediate between the spinlocks and mutexes:
@@ -102,6 +106,8 @@ int tMPI_Lock_trylock(tMPI_Lock_t *lock);
 TMPI_EXPORT
 int tMPI_Lock_islocked(tMPI_Lock_t *lock);
 
-
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* TMPI_FASTLOCK_H_ */