Skip to content

m_use_caller为false时,stop函数中assert(getThis() != this)判断为false而中止程序。 #6

@Winystar

Description

@Winystar

m_use_caller为true时正常运行test,检查代码也没发现问题,怎么处理呀。
调试信息:
john@john-virtual-machine:~/桌面/MyCoroutineLib/3scheduler$ ./test
Scheduler::Scheduler() success
Scheduler::start() success

begin post

post again
Scheduler::stop() starts in thread: 5874
test: scheduler.cpp:178: virtual void john::Scheduler::stop(): Assertion `getThis() != this' failed.
已中止 (核心已转储)

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