Searched refs:VersionCtx (Results 1 - 9 of 9) sorted by relevance
/foundation/resourceschedule/ffrt/src/core/ |
H A D | version_ctx.cpp | 22 static inline void BuildConsumeRelationship(VersionCtx* version, SCPUEUTask* consumer) in BuildConsumeRelationship() 33 static inline void BuildProducerProducerRelationship(VersionCtx* preVersion, SCPUEUTask* nextProducer) in BuildProducerProducerRelationship() 41 void VersionCtx::AddConsumer(SCPUEUTask* consumer, NestType nestType) in AddConsumer() 44 // Parent's VersionCtx in AddConsumer() 45 VersionCtx* beConsumeVersion = this; in AddConsumer() 57 void VersionCtx::AddProducer(SCPUEUTask* producer) in AddProducer() 60 // Parent's VersionCtx in AddProducer() 63 VersionCtx* preVersion = parentVersion->last; in AddProducer() 71 void VersionCtx::onProduced() in onProduced() 87 } else { // Merge previous VersionCtx in onProduced() [all...] |
H A D | entity.cpp | 21 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() 37 // VersionCtx list delete in RecycleVersion() 42 SimpleAllocator<VersionCtx>::FreeMem(cur); in RecycleVersion() 49 SimpleAllocator<VersionCtx>::FreeMem(next); in RecycleVersion()
|
H A D | version_ctx.h | 25 /* The relationship of VersionCtx is implemented using a doubly linked list: 31 struct VersionCtx : private NonCopyable { struct 32 VersionCtx(const void* signature, VersionCtx* next, VersionCtx* last) in VersionCtx() function 38 VersionCtx* next {nullptr}; 40 VersionCtx* last {nullptr}; 90 inline void MergeConsumerInDep(VersionCtx* v) in MergeConsumerInDep() 98 inline void MergeProducerOutDep(VersionCtx* v) in MergeProducerOutDep()
|
H A D | entity.h | 26 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;
|
/foundation/resourceschedule/ffrt/src/dm/ |
H A D | sdependence_manager.h | 54 const std::vector<const void*>& outDeps, std::vector<std::pair<VersionCtx*, NestType>>& inVersions, 55 std::vector<std::pair<VersionCtx*, NestType>>& outVersions);
|
H A D | sdependence_manager.cpp | 37 SimpleAllocator<VersionCtx>::Instance(); in SDependenceManager() 129 std::vector<std::pair<VersionCtx*, NestType>> inDatas; in onSubmit() 130 std::vector<std::pair<VersionCtx*, NestType>> outDatas; in onSubmit() 209 std::vector<VersionCtx*> waitDatas; in onWait() 218 // Find the VersionCtx of the parent task level in onWait() 293 // VersionCtx recycling in onTaskDone() 303 const std::vector<const void*>& outDeps, std::vector<std::pair<VersionCtx*, NestType>>& inVersions, in MapSignature2Deps() 304 std::vector<std::pair<VersionCtx*, NestType>>& outVersions) in MapSignature2Deps() 309 VersionCtx* version = nullptr; in MapSignature2Deps() 334 VersionCtx* versio in MapSignature2Deps() [all...] |
/foundation/resourceschedule/ffrt/src/tm/ |
H A D | scpu_task.h | 25 std::unordered_set<VersionCtx*> ins; 26 std::unordered_set<VersionCtx*> outs;
|
H A D | cpu_task.h | 36 struct VersionCtx;
|
/foundation/resourceschedule/ffrt/src/sched/ |
H A D | scheduler.h | 51 void onWait(const std::vector<VersionCtx*>& waitDatas, int64_t deadline) in onWait() 119 void UpdateVersion(VersionCtx* data, int64_t deadline) in UpdateVersion()
|
Completed in 3 milliseconds