#include <stdio.h>
#include <assert.h>
#include "midas.h"
#include "msystem.h"
Go to the source code of this file.
◆ device_driver()
Definition at line 153 of file device_driver.cxx.
154{
160
163
164
167
168 switch (cmd) {
171
176
178
183
184
187
188
192
193
197
198
202 }
203
208 }
209 } else {
213 }
214 break;
215
218
220 }
221 break;
222
224
227 break;
228
233
234
235 for (
i = 0;
i < 1000;
i++) {
237 break;
239 }
240
241
244
248 }
249 break;
250
253 break;
254
259 break;
260
265 break;
266
267 default:
268
270
271
279 } else {
281 }
282
284
285
295 } else
297
298 } else {
299
300
304 }
305
306 break;
307 }
308
311}
static int sc_thread(void *info)
#define FE_PARTIALLY_DISABLED
INT ss_mutex_release(MUTEX_T *mutex)
INT ss_thread_kill(midas_thread_t thread_id)
INT ss_mutex_delete(MUTEX_T *mutex)
INT ss_mutex_create(MUTEX_T **mutex, BOOL recursive)
midas_thread_t ss_thread_create(INT(*thread_func)(void *), void *param)
INT ss_sleep(INT millisec)
INT ss_mutex_wait_for(MUTEX_T *mutex, INT timeout)
TH1X EXPRT * h1_book(const char *name, const char *title, int bins, double min, double max)
◆ sc_thread()
Definition at line 15 of file device_driver.cxx.
16{
25
27
32
33
35
36
39
41 do {
42
43
45
46
47
48
52 } else {
55 }
56 }
57
62
67 }
69 }
70
71
73
74
81
82 break;
83 }
84 }
85
86
89
92
97 }
98 }
99 }
100
101
103
109
115 }
116 }
117 }
118 }
119
120
122
129
134 }
135 }
136 }
137 }
138
140
142
144
145
147
149}
INT EXPRT ss_thread_set_name(std::string name)
static char * skip(char **buf, const char *delimiters)