Home
last modified time | relevance | path

Searched refs:VersionCtx (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/foundation/resourceschedule/ffrt/src/core/
H A Dversion_ctx.cpp22 static inline void BuildConsumeRelationship(VersionCtx* version, SCPUEUTask* consumer) in BuildConsumeRelationship()
33 static inline void BuildProducerProducerRelationship(VersionCtx* preVersion, SCPUEUTask* nextProduc… in BuildProducerProducerRelationship()
41 void VersionCtx::AddConsumer(SCPUEUTask* consumer, NestType nestType) in AddConsumer()
45 VersionCtx* beConsumeVersion = this; in AddConsumer()
57 void VersionCtx::AddProducer(SCPUEUTask* producer) in AddProducer()
63 VersionCtx* preVersion = parentVersion->last; in AddProducer()
71 void VersionCtx::onProduced() in onProduced()
92 void VersionCtx::onConsumed(SCPUEUTask* consumer) in onConsumed()
105 void VersionCtx::CreateChildVersion(SCPUEUTask* task __attribute__((unused)), DataStatus dataStatus) in CreateChildVersion()
109 last = new (SimpleAllocator<VersionCtx>::AllocMem()) VersionCtx(this->signature, this, prev); in CreateChildVersion()
[all …]
H A Dversion_ctx.h31 struct VersionCtx : private NonCopyable { struct
32 VersionCtx(const void* signature, VersionCtx* next, VersionCtx* last) in VersionCtx() argument
38 VersionCtx* next {nullptr}; argument
40 VersionCtx* last {nullptr};
90 inline void MergeConsumerInDep(VersionCtx* v) in MergeConsumerInDep() argument
98 inline void MergeProducerOutDep(VersionCtx* v) in MergeProducerOutDep() argument
H A Dentity.cpp21 VersionCtx* Entity::VA2Ctx(const void* p, SCPUEUTask* task __attribute__((unused))) in VA2Ctx()
27 auto version = new (SimpleAllocator<VersionCtx>::AllocMem()) VersionCtx(p, nullptr, nullptr); in VA2Ctx()
35 VersionCtx* cur = *it; in RecycleVersion()
36 VersionCtx* next = cur->next; in RecycleVersion()
42 SimpleAllocator<VersionCtx>::FreeMem(cur); in RecycleVersion()
49 SimpleAllocator<VersionCtx>::FreeMem(next); in RecycleVersion()
H A Dentity.h26 struct VersionCtx;
35 VersionCtx* VA2Ctx(const void* p, SCPUEUTask* task);
38 std::list<VersionCtx*> versionTrashcan; // VersionCtx to be deleted
39 std::unordered_map<const void*, VersionCtx*> vaMap;
/ohos5.0/foundation/resourceschedule/ffrt/src/dm/
H A Dsdependence_manager.cpp38 SimpleAllocator<VersionCtx>::Instance(); in SDependenceManager()
130 std::vector<std::pair<VersionCtx*, NestType>> inDatas; in onSubmit()
131 std::vector<std::pair<VersionCtx*, NestType>> outDatas; in onSubmit()
211 std::vector<VersionCtx*> waitDatas; in onWait()
305 …const std::vector<const void*>& outDeps, std::vector<std::pair<VersionCtx*, NestType>>& inVersions, in MapSignature2Deps() argument
306 std::vector<std::pair<VersionCtx*, NestType>>& outVersions) in MapSignature2Deps()
311 VersionCtx* version = nullptr; in MapSignature2Deps()
336 VersionCtx* version = nullptr; in MapSignature2Deps()
H A Dsdependence_manager.h52 …const std::vector<const void*>& outDeps, std::vector<std::pair<VersionCtx*, NestType>>& inVersions,
53 std::vector<std::pair<VersionCtx*, NestType>>& outVersions);
/ohos5.0/foundation/resourceschedule/ffrt/src/tm/
H A Dscpu_task.h25 std::unordered_set<VersionCtx*> ins;
26 std::unordered_set<VersionCtx*> outs;
H A Dcpu_task.h36 struct VersionCtx;
/ohos5.0/foundation/resourceschedule/ffrt/src/sched/
H A Dscheduler.h51 void onWait(const std::vector<VersionCtx*>& waitDatas, int64_t deadline) in onWait()
119 void UpdateVersion(VersionCtx* data, int64_t deadline) in UpdateVersion()