|
Last change
on this file since 3584 was 3538, checked in by ansari, 17 years ago |
|
This commit was generated by cvs2svn to compensate for changes in r3537,
which included commits to RCS files with non-trunk default branches.
|
|
File size:
1.4 KB
|
| Line | |
|---|
| 1 | #ifndef RACQURW_H_SEEN
|
|---|
| 2 | #define RACQURW_H_SEEN
|
|---|
| 3 |
|
|---|
| 4 | //----------------------------------------------------------------
|
|---|
| 5 | // ---- classes de threads pour lecture (transfert DMA)
|
|---|
| 6 | // et ecriture disque pour acquisition BAORadio -----
|
|---|
| 7 | // LAL - R. Ansari - Juin/Juillet 2008
|
|---|
| 8 | //----------------------------------------------------------------
|
|---|
| 9 |
|
|---|
| 10 | #include "racqumem.h"
|
|---|
| 11 | #include <string>
|
|---|
| 12 | #include <vector>
|
|---|
| 13 | #include <iostream>
|
|---|
| 14 | #include "sopnamsp.h"
|
|---|
| 15 | #include "zthread.h"
|
|---|
| 16 |
|
|---|
| 17 | #include "brtypes.h"
|
|---|
| 18 |
|
|---|
| 19 | using namespace std;
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 | //-------------------------------------------------------
|
|---|
| 24 | // Classe thread de lecture PCI-Express
|
|---|
| 25 | //-------------------------------------------------------
|
|---|
| 26 |
|
|---|
| 27 | class PCIEReader : public ZThread {
|
|---|
| 28 | public:
|
|---|
| 29 | PCIEReader(RAcqMemZoneMgr& mem, uint_4 nmax=100);
|
|---|
| 30 | virtual void run();
|
|---|
| 31 | inline void STOP() { stop_ = true; }
|
|---|
| 32 | protected:
|
|---|
| 33 | RAcqMemZoneMgr& memgr;
|
|---|
| 34 | uint_4 nmax_; // Nombre maxi de blocs MemZone traites
|
|---|
| 35 | bool stop_;
|
|---|
| 36 | };
|
|---|
| 37 |
|
|---|
| 38 | //-------------------------------------------------------
|
|---|
| 39 | // Classe thread de sauvegarde sur fichiers
|
|---|
| 40 | //-------------------------------------------------------
|
|---|
| 41 |
|
|---|
| 42 | class DataSaver : public ZThread {
|
|---|
| 43 | public:
|
|---|
| 44 | DataSaver(RAcqMemZoneMgr& mem, string& path, uint_4 nmax=100);
|
|---|
| 45 | virtual void run();
|
|---|
| 46 | inline void STOP() { stop_ = true; }
|
|---|
| 47 | protected:
|
|---|
| 48 | RAcqMemZoneMgr& memgr;
|
|---|
| 49 | uint_4 nmax_; // Nombre maxi de blocs MemZone traites
|
|---|
| 50 | bool stop_;
|
|---|
| 51 | string path_;
|
|---|
| 52 | };
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.