Skip to content

Invalidate object by method call #18

@rsashka

Description

@rsashka
void ThreadLaunch() {
    cout << "ThreadLaunch" << endl;
}

int main() {

    thread t1(ThreadLaunch);

    t1.detach();

    //..... 

    t1.join(); // CRASH !!!
    return 0;
}

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