2004-11-22 00:37:56 +00:00
|
|
|
/*
|
2004-11-22 01:38:40 +00:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2004-11-28 20:09:25 +00:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2004-11-22 01:38:40 +00:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-11-22 00:37:56 +00:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2004-10-20 01:03:09 +00:00
|
|
|
#include "ompi_config.h"
|
2004-04-06 16:32:40 +00:00
|
|
|
#include "event/event.h"
|
|
|
|
#include "mca/pml/pml.h"
|
2004-06-07 15:33:53 +00:00
|
|
|
#include "runtime/ompi_progress.h"
|
2004-04-06 16:32:40 +00:00
|
|
|
|
|
|
|
|
2004-10-28 15:40:46 +00:00
|
|
|
static int ompi_progress_event_flag = OMPI_EVLOOP_ONCE;
|
|
|
|
|
|
|
|
void ompi_progress_events(int flag)
|
|
|
|
{
|
2004-11-20 19:12:43 +00:00
|
|
|
ompi_progress_event_flag = flag;
|
2004-10-28 15:40:46 +00:00
|
|
|
}
|
|
|
|
|
2004-06-07 15:33:53 +00:00
|
|
|
void ompi_progress(void)
|
2004-04-06 16:32:40 +00:00
|
|
|
{
|
2004-10-28 15:40:46 +00:00
|
|
|
if(ompi_progress_event_flag != 0)
|
2004-11-20 19:12:43 +00:00
|
|
|
ompi_event_loop(ompi_progress_event_flag);
|
|
|
|
mca_pml.pml_progress();
|
2004-04-06 16:32:40 +00:00
|
|
|
}
|
|
|
|
|