Skip to content

v1 会出现aba问题 #20

@haodayikuairou

Description

@haodayikuairou

class P1 {
int id_;
};
class P2 {
int id_;
};
class P3 {
int id_;
};
class P4 {
int id_;
};
class P5 {
int id_;
};把测试案列改成这样,会core dump。
最便捷的解决,但不严谨
Slot *MemoryPool::popFreeList() {
std::this_thread::sleep_for(std::chrono::milliseconds(10));
...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions