FastSort/src/sort/phase_2.h

44 lines
887 B
C
Raw Normal View History

/*
Description:
* phase-2
* 1. 线
* 2. phase-2-stage-1buf
* 3. phase-2-stage-2线buf
* 4. phase-2-stage-3bufbam
* 5. indexindex
Copyright : All right reserved by ICT
Author : Zhang Zhonghai
Date : 2026/02/08
*/
#pragma once
2026-06-03 16:47:46 +08:00
#include <stdio.h>
struct Phase2File {
FILE* fp;
// 双buffer
// 当前读入的buffer指针df
// ReadBuffer
2026-06-03 16:47:46 +08:00
};
// 循环缓冲区
struct CircularBuffer {
};
// 循环数组
struct CircularArray {
};
/* 第二阶段的多线程流水线参数 */
struct Phase2PipelineArg {
};
void phase2Pipeline(Phase2PipelineArg &p);