Lines Matching refs:semaphore
15 // Get semaphore for parent
18 echo "P: failed to parent get semaphore.\n";
22 echo "P: got semaphore.\n";
24 // Get semaphore for child
27 echo "P: failed to child get semaphore.\n";
32 // Acquire semaphore for parent
34 echo "P: fail to acquire semaphore.\n";
38 echo "P: acquired semaphore.\n";
40 // Acquire semaphore for child
42 echo "P: failed to acquire semaphore.\n";
46 echo "P: acquired semaphore.\n";
53 echo "P: removing semaphore.\n";
57 // Release semaphore after 50ms
60 /* Wait for the child semaphore to be released to
61 to release the parent semaphore */
63 echo "P: failed to acquire semaphore.\n";
68 the releasing the parent semaphore and letting
72 echo "P: releasing semaphore.\n";
74 echo "P: failed to release semaphore.\n";
83 echo "C: removing semaphore.\n";
89 // Have the semaphore after process forked
92 // This should fail to get to the semaphore and not wait
94 echo "C: test failed, Child was able to acquire semaphore.\n";
98 // The child process did not wait to acquire the semaphore
99 echo "C: failed to acquire semaphore.\n";
101 echo "C: releasing semaphore.\n";
103 echo "C: failed to release semaphore.\n";
106 // Acquire semaphore with waiting
108 echo "C: fail to acquire semaphore.\n";
111 echo "C: success acquired semaphore.\n";
113 echo "C: releasing semaphore.\n";
120 P: got semaphore.
121 P: acquired semaphore.
122 P: acquired semaphore.
125 C: failed to acquire semaphore.
126 C: releasing semaphore.
127 P: releasing semaphore.
128 C: success acquired semaphore.
129 C: releasing semaphore.
130 C: removing semaphore.
131 P: removing semaphore.