#include <stdio.h>
#include <signal.h>
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include "midas.h"
#include "tmfe.h"
Go to the source code of this file.
◆ main()
Definition at line 99 of file fetest_tmfe_thread.cxx.
100{
103
105
106 std::string
name =
"";
107
110 } else {
112 }
113
115
118 printf(
"Cannot connect, bye.\n");
119 return 1;
120 }
121
122
123
127
128
131 eq->SetStatus(
"Starting...",
"white");
132 eq->ZeroStatistics();
133 eq->WriteStatistics();
134
135 mfe->RegisterEquipment(
eq);
136
138
140
141
142
143
144
145
147
149
151
152 mfe->StartRpcThread();
153 mfe->StartPeriodicThread();
154
155 eq->SetStatus(
"Started...",
"white");
156
157 while (!
mfe->fShutdownRequested) {
159 }
160
162
163 return 0;
164}
static std::string GetThreadId()
return identification of this thread
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
◆ usage()