lthread icon indicating copy to clipboard operation
lthread copied to clipboard

lthread_join is misleading

Open kangjianbin opened this issue 9 years ago • 0 comments

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.

kangjianbin avatar Mar 13 '15 08:03 kangjianbin