EGSnrc C++ class library  Report PIRS-898 (2021)
Iwan Kawrakow, Ernesto Mainegra-Hing, Frederic Tessier, Reid Townson and Blake Walters
Macros | Typedefs | Functions | Variables
egs_run_control.cpp File Reference

EGS_RunControl and EGS_JCFControl implementation. More...

#include "egs_run_control.h"
#include "egs_application.h"
#include "egs_input.h"
#include "egs_functions.h"
#include "egs_library.h"
#include <vector>
#include <ctime>
#include <cstdio>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <string.h>
#include <stdio.h>
#include <sstream>

Go to the source code of this file.

Macros

#define OPEN_FILE   open
 
#define CLOSE_FILE   close
 
#define CREATE_FLAGS   O_RDWR | O_CREAT | O_EXCL, S_IRUSR | S_IWUSR
 
#define OPEN_FLAGS   O_RDWR
 
#define WAIT_FOR_FILE   sleep(1)
 
#define WRITE_FILE   write
 
#define READ_FILE   read
 
#define MY_OSTREAM   std::ostringstream
 
#define MY_ISTREAM   std::istringstream
 

Typedefs

typedef EGS_RunControl *(* EGS_RunControlCreationFunction )(EGS_Application *)
 

Functions

void rco_sleep (const int &mscnds)
 Suspend execution for a given time (in ms) More...
 

Variables

vector< EGS_Library * > rc_libs
 

Detailed Description

EGS_RunControl and EGS_JCFControl implementation.

Author
Iwan Kawrakow, NRC

Definition in file egs_run_control.cpp.

Function Documentation

void rco_sleep ( const int &  mscnds)

Suspend execution for a given time (in ms)

Called from the uniform RCO to wait for all jobs to finish. Time is set by default to 1s, but user can change it using the input key

interval wait time = time in ms

in the run control input block.

void rco_sleep(const int& mscnds);

Definition at line 815 of file egs_run_control.cpp.

Referenced by EGS_UniformRunControl::finishSimulation().