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

#include "Task.h"


namespace zilliz {
namespace milvus {
namespace engine {

class TestTask : public Task {
public:
W
wxyu 已提交
17
    TestTask();
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 29 30 31
    TaskPtr
    Clone() override;

    void
    Wait();

W
wxyu 已提交
32
public:
W
wxyu 已提交
33 34 35 36 37 38
    uint64_t load_count_ = 0;
    uint64_t exec_count_ = 0;

    bool done_ = false;
    std::mutex mutex_;
    std::condition_variable cv_;
W
wxyu 已提交
39 40 41 42 43 44
};


}
}
}