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