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