![]() |
NSUKit
1.4.0
板卡级统一交互接口
|
#include <iostream>#include <queue>#include <thread>#include <condition_variable>#include "NSUKit.h"类 | |
| class | ThreadSafeQueue< T > |
| struct | Deque |
宏定义 | |
| #define | STREAM_WITH_PCIE |
| #define | SocType nsukit::NSUSoc <nsukit::SimCmdUItf, nsukit::SimCmdUItf, nsukit::SimStreamUItf> |
| #define | SocType nsukit::NSUSoc <nsukit::TCPCmdUItf, nsukit::TCPCmdUItf, nsukit::PCIERingUItf> |
类型定义 | |
| typedef ThreadSafeQueue< void > | memQueue |
函数 | |
| void | upload_thread (nsukit::BaseKit *_kit, Deque *q, nsuSize_t block, nsuSize_t total, std::mutex *mu, nsuChnlNum_t chnl) |
| void | write_file_thread (nsukit::BaseKit *_kit, Deque *q, nsuSize_t block, const std::string &path, std::mutex *mu) |
| int | main (int argc, char *argv[]) |
在文件 data_uploadfeiting.cpp 第 41 行定义.
在文件 data_uploadfeiting.cpp 第 41 行定义.
| #define STREAM_WITH_PCIE |
在文件 data_uploadfeiting.cpp 第 36 行定义.
| typedef ThreadSafeQueue<void> memQueue |
在文件 data_uploadfeiting.cpp 第 82 行定义.
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |
在文件 data_uploadfeiting.cpp 第 170 行定义.
| void upload_thread | ( | nsukit::BaseKit * | _kit, |
| Deque * | q, | ||
| nsuSize_t | block, | ||
| nsuSize_t | total, | ||
| std::mutex * | mu, | ||
| nsuChnlNum_t | chnl | ||
| ) |
Data upstream thread retrieves data from the board at a granular level and pushes it into the full queue.
| _kit | |
| q | |
| block | |
| total | |
| mu |
在文件 data_uploadfeiting.cpp 第 100 行定义.
| void write_file_thread | ( | nsukit::BaseKit * | _kit, |
| Deque * | q, | ||
| nsuSize_t | block, | ||
| const std::string & | path, | ||
| std::mutex * | mu | ||
| ) |
| _kit | |
| q | |
| block | |
| path | |
| mu |
在文件 data_uploadfeiting.cpp 第 136 行定义.