]>
Commit | Line | Data |
---|---|---|
76a50749 UD |
1 | - we should probably extend pthread_mutexattr_t with a field to create a |
2 | single linked list of all instances. This requires changing the | |
3 | pthread_mutexattr_* functions. | |
4 | ||
5 | ||
6 | - a new attribute for mutexes: number of times we spin before calling | |
7 | sys_futex | |
8 | ||
7d4722e3 UD |
9 | - for adaptive mutexes: when releasing, determine whether somebody spins. |
10 | If yes, for a short time release lock. If someone else locks no wakeup | |
11 | syscall needed. | |
12 | ||
76a50749 UD |
13 | |
14 | ||
c22b52fa UD |
15 | - test with threaded process terminating and semadj (?) being applied |
16 | only after all threads are gone | |
2c1d6172 UD |
17 | |
18 | ||
19 | ||
20 | - semaphore changes: | |
21 | ||
22 | - sem_post should only wake one thread and only when the state of | |
23 | the semaphore changed from 0 to 1 | |
24 | ||
25 | this also requires that sem_wait and sem_timedwait don't drop the | |
26 | post if they get canceled. | |
27 | ||
28 | - possibly add counter field. This requires reviving the | |
7f0d9e61 PP |
29 | differences between old and new semaphore functions. The old ones |
30 | stay as they are now. The new ones can use an additional field | |
31 | which is the counter for the number of waiters |