e276fcbdce
Mrntt now has the event loop structure required to orderly shut itself
down when it itself generates an exception. We can now post a message
within the catch{} blocks for Mrntt's event loop, telling Mrntt
to shut down the Mind threads and then shut itself down.
We also split the code to initialize threads etc out of mrntt and
put it into the Mind:: namespace.
36 lines
527 B
C++
36 lines
527 B
C++
#ifndef _MARIONETTE_H
|
|
#define _MARIONETTE_H
|
|
|
|
#include <cstdint>
|
|
#include <atomic>
|
|
|
|
namespace smo {
|
|
namespace mrntt {
|
|
|
|
extern std::atomic<int> exitCode;
|
|
|
|
class Marionette
|
|
{
|
|
};
|
|
|
|
} // namespace mrntt
|
|
|
|
struct CrtCommandLineArgs
|
|
{
|
|
CrtCommandLineArgs(int argc, char *argv[], char *envp[])
|
|
: argc(argc), argv(argv), envp(envp)
|
|
{}
|
|
|
|
int argc;
|
|
char **argv;
|
|
char **envp;
|
|
|
|
static void set(int argc, char *argv[], char *envp[]);
|
|
};
|
|
|
|
void initializeSalmanoff(void);
|
|
|
|
} // namespace smo
|
|
|
|
#endif // _MARIONETTE_H
|