Skip to content

lthread_join is misleading #36

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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