本文整理汇总了C++中Converter::join方法的典型用法代码示例。如果您正苦于以下问题:C++ Converter::join方法的具体用法?C++ Converter::join怎么用?C++ Converter::join使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Converter
的用法示例。
在下文中一共展示了Converter::join方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: main
int main(int argc, char* argv[])
{
if (argc < 7) {
usage(argv[0]);
}
std::string h5file = argv[1];
std::string immfile = argv[2];
std::string dataset = argv[3];
unsigned int buffer_count = atoi(argv[4]);
unsigned int frames = atoi(argv[5]);
unsigned int frames_per_buffer = atoi(argv[6]);
BufferPool *pool = new BufferPool(buffer_count, 1024, 1024, frames_per_buffer);
Queue<FrameBuffer*> *readconvert = new Queue<FrameBuffer*>();
Queue<FrameBuffer*> *convertwrite = new Queue<FrameBuffer*>();
Reader *reader = new Reader(h5file, dataset, 1024, 1024, frames, frames_per_buffer, pool, readconvert);
Converter *converter = new Converter(readconvert, convertwrite, frames);
Writer *writer = new Writer(immfile, convertwrite, pool, frames);
writer->start();
converter->start();
reader->start();
reader->join();
converter->join();
writer->join();
printf("Done\n");
}