1 |
158 |
chris |
*** POSIX TEST 10 ***
|
2 |
|
|
Init: pthread_condattr_init
|
3 |
|
|
Init: pthread_condattr_init - EINVAL (attribute invalid)
|
4 |
|
|
Init: pthread_condattr_destroy
|
5 |
|
|
Init: pthread_condattr_destroy - EINVAL (attribute invalid)
|
6 |
|
|
Init: pthread_condattr_init
|
7 |
|
|
Init: pthread_condattr_setpshared - PTHREAD_PROCESS_SHARED
|
8 |
|
|
Init: pthread_condattr_setpshared - PTHREAD_PROCESS_PRIVATE
|
9 |
|
|
Init: pthread_condattr_setpshared - EINVAL (attribute invalid)
|
10 |
|
|
Init: pthread_condattr_setpshared - EINVAL (pshared invalid)
|
11 |
|
|
Init: pthread_condattr_getpshared - 0
|
12 |
|
|
Init: pthread_condattr_getpshared - EINVAL (attribute invalid)
|
13 |
|
|
Init: pthread_cond_init - NULL attr
|
14 |
|
|
Init: pthread_cond_init - EINVAL (attr not initialized)
|
15 |
|
|
Init: pthread_cond_init - ENOMEM (too many conds)
|
16 |
|
|
Init: pthread_cond_destroy
|
17 |
|
|
Init: pthread_cond_destroy - EINVAL (cond invalid)
|
18 |
|
|
Init: pthread_cond_init - attr
|
19 |
|
|
Init: sleep to switch to Task_1
|
20 |
|
|
Task_1: ID is 0x0c010002
|
21 |
|
|
Task_1: pthread_cond_wait
|
22 |
|
|
Init: pthread_cond_destroy - EBUSY (task1 waiting)
|
23 |
|
|
Init: pthread_cond_signal
|
24 |
|
|
Init: sleep - switch to Task_1 and Task_2
|
25 |
|
|
Task_1: back from pthread_cond_wait release mutex
|
26 |
|
|
Task_1: pthread_cond_wait
|
27 |
|
|
Task_2: ID is 0x0c010003
|
28 |
|
|
Task_2: pthread_cond_wait
|
29 |
|
|
Init: pthread_cond_broadcast
|
30 |
|
|
Init: sleep - switch to Task_1
|
31 |
|
|
Task_1: back from pthread_cond_wait release mutex
|
32 |
|
|
Task_1: task exit
|
33 |
|
|
Task_2: back from pthread_cond_wait release mutex
|
34 |
|
|
Task_2: task exit
|
35 |
|
|
Init: pthread_cond_timedwait for 3 seconds
|
36 |
|
|
Init: pthread_cond_timedwait - ETIMEDOUT - (mutex not acquired)
|
37 |
|
|
Init: pthread_cond_signal - EINVAL (cond invalid)
|
38 |
|
|
Init: pthread_cond_broadcast - EINVAL (cond invalid)
|
39 |
|
|
Init: pthread_cond_wait - EINVAL (cond invalid)
|
40 |
|
|
Init: pthread_cond_timedwait - EINVAL (cond invalid)
|
41 |
|
|
Init: pthread_cond_wait - EINVAL (mutex invalid)
|
42 |
|
|
Init: pthread_cond_timedwait - EINVAL (mutex invalid)
|
43 |
|
|
Init: pthread_cond_timedwait - EINVAL (abstime NULL)
|
44 |
|
|
Init: pthread_cond_timedwait - ETIMEDOUT (abstime->tv_sec < current time)
|
45 |
|
|
Init: pthread_cond_timedwait - ETIMEDOUT (abstime->tv_nsec < current time)
|
46 |
|
|
Init: pthread_cond_wait - EINVAL (mutex not locked before call)
|
47 |
|
|
Init: pthread_cond_timedwait - EINVAL (mutex not locked before call)
|
48 |
|
|
Init: sleep - switch to Task_3
|
49 |
|
|
Task_3: ID is 0x0c010004
|
50 |
|
|
Task_3: pthread_cond_wait
|
51 |
|
|
Init: pthread_cond_signal
|
52 |
|
|
Init: sleep - switch to Task_3
|
53 |
|
|
Task_3: pthread_cond_wait - EINVAL (mutex not locked after signal)
|
54 |
|
|
Task_3: task exit
|
55 |
|
|
*** END OF POSIX TEST 10 ***
|