TestTask.h 824 字节
Newer Older
W
wxyu 已提交
1 2 3 4 5 6 7
/*******************************************************************************
 * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved
 * Unauthorized copying of this file, via any medium is strictly prohibited.
 * Proprietary and confidential.
 ******************************************************************************/
#pragma once

8
#include "SearchTask.h"
W
wxyu 已提交
9 10 11 12 13 14


namespace zilliz {
namespace milvus {
namespace engine {

15
class TestTask : public XSearchTask {
W
wxyu 已提交
16
public:
17
    TestTask(TableFileSchemaPtr& file);
W
wxyu 已提交
18 19 20 21 22 23 24 25

public:
    void
    Load(LoadType type, uint8_t device_id) override;

    void
    Execute() override;

W
wxyu 已提交
26 27 28
    void
    Wait();

W
wxyu 已提交
29
public:
W
wxyu 已提交
30 31 32 33 34 35
    uint64_t load_count_ = 0;
    uint64_t exec_count_ = 0;

    bool done_ = false;
    std::mutex mutex_;
    std::condition_variable cv_;
W
wxyu 已提交
36 37 38 39 40 41
};


}
}
}