Home | History | Annotate | Line # | Download | only in libpthread
TODO revision 1.1.2.7
      1  1.1.2.1  nathanw 
      2  1.1.2.3  nathanw Interfaces/features to implement:
      3  1.1.2.3  nathanw - cancellation
      4  1.1.2.3  nathanw - pthread_cond_wait() and associated timing goop.
      5  1.1.2.3  nathanw - pthread_kill()
      6  1.1.2.3  nathanw - pthread_atfork()
      7  1.1.2.3  nathanw - priority scheduling
      8  1.1.2.3  nathanw - non-i386 platform support
      9  1.1.2.3  nathanw - libc integration: 
     10  1.1.2.3  nathanw    - foo_r interfaces
     11  1.1.2.3  nathanw    - cancellation points
     12  1.1.2.3  nathanw - system integration
     13  1.1.2.3  nathanw    - some macros and prototypes belong in headers other than pthread.h
     14  1.1.2.3  nathanw 
     15  1.1.2.3  nathanw 
     16  1.1.2.3  nathanw Features that need more/better regression tests:
     17  1.1.2.3  nathanw  - pthread_cond_broadcast()
     18  1.1.2.3  nathanw  - pthread_once()
     19  1.1.2.3  nathanw  - pthread_get/setspecific()
     20  1.1.2.3  nathanw  - signals
     21  1.1.2.3  nathanw 
     22  1.1.2.3  nathanw 
     23  1.1.2.3  nathanw Things that need fixing:
     24  1.1.2.4  nathanw - Correct [non]resumption of PT_IDLED thread.
     25  1.1.2.3  nathanw - Recycle dead threads for new threads.
     26  1.1.2.3  nathanw 
     27  1.1.2.3  nathanw Ideas to play with:
     28  1.1.2.3  nathanw - Explore the trapcontext vs. usercontext distinction in ucontext_t.
     29  1.1.2.3  nathanw - Get rid of thread structures when too many accumulate (is this
     30  1.1.2.3  nathanw   actually a good idea?)
     31  1.1.2.3  nathanw - Adaptive spin/sleep locks for mutexes.
     32  1.1.2.1  nathanw - Supporting different mutex types would be nice (normal, debugging,
     33  1.1.2.1  nathanw   recursive, etc).
     34  1.1.2.1  nathanw - Currently, each thread uses two real pages of memory: one at the top
     35  1.1.2.1  nathanw   of the stack for actual stack data, and one at the bottom for the
     36  1.1.2.1  nathanw   pthread_st. If we can get suitable space above the initial stack for
     37  1.1.2.1  nathanw   main(), we can cut this to one page per thread. Perhaps crt0 should
     38  1.1.2.1  nathanw   do something different (give us more space) if libpthread is linked
     39  1.1.2.1  nathanw   in?
     40  1.1.2.1  nathanw - Figure out whether/how to expose the inline version of
     41  1.1.2.1  nathanw   pthread_self().
     42