Skip to content

lthread_join is misleading #36

@kangjianbin

Description

@kangjianbin

When calling lthread_join, you need check return result before freeing the lthread struct.
It is too easy to cause memory leak or corruption.

A better solution is to follow pthread_join behavior: No timeout parameter. The caller need to free 'lthread' struct.

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