/* whether MPI has finalized (we need this to distinguish pre-inited from
post-finalized states */
-static bool tmpi_finalized=FALSE;
+static gmx_bool tmpi_finalized=FALSE;
/* misc. global information about MPI */
struct tmpi_global *tmpi_global=NULL;
/* start N threads with argc, argv (used by tMPI_Init)*/
-void tMPI_Start_threads(bool main_returns, int N, int *argc, char ***argv,
+void tMPI_Start_threads(gmx_bool main_returns, int N, int *argc, char ***argv,
void (*start_fn)(void*), void *start_arg,
int (*start_fn_main)(int, char**));
}
#endif
-bool tMPI_Is_master(void)
+gmx_bool tMPI_Is_master(void)
{
/* if there are no other threads, we're the main thread */
if ( (!TMPI_COMM_WORLD) || TMPI_COMM_WORLD->grp.N==0)
/* otherwise we know this through thread specific data: */
/* whether the thread pointer points to the head of the threads array */
- return (bool)(tMPI_Get_current() == threads);
+ return (gmx_bool)(tMPI_Get_current() == threads);
}
tMPI_Comm tMPI_Get_comm_self(void)
}
-void tMPI_Start_threads(bool main_returns, int N, int *argc, char ***argv,
+void tMPI_Start_threads(gmx_bool main_returns, int N, int *argc, char ***argv,
void (*start_fn)(void*), void *start_arg,
int (*start_fn_main)(int, char**))
{