Re: [PATCH] pthread_kill.3: Update to match POSIX.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* enh:

> no, because the C library has two choices when a thread exits:
>
> 1. unmap the thread.
>
> 2. keep the thread around for recycling.
>
> if you choose 1 (optimizing for space, like Android), your dereference
> is illegal.

This choice is only available for threads in a detached state.  For
joinable threads, a conforming implementation cannot immediately
deallocate all data structures on thread termination.  Among other
things, it has to store the future return value of pthread_join
somewhere.



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux